LsOcpCniOpenshiftSdn - command ls -l /var/lib/cni/networks/openshift-sdn

The ls -l /var/lib/cni/networks/openshift-sdn command is used to return the count of cni files and also could provide information for the listing of the /var/lib/cni/networks/openshift-sdn directory. See FileListing class for additional information. Sample input is shown in the Examples. See FileListing class for additional information.

Sample directory list:

total 52
-rw-r--r--. 1 root root 64 Aug  5 23:26 10.130.0.102
-rw-r--r--. 1 root root 64 Aug  5 23:26 10.130.0.103
-rw-r--r--. 1 root root 64 Aug  6 22:52 10.130.0.116
-rw-r--r--. 1 root root 64 Aug  6 22:52 10.130.0.117
-rw-r--r--. 1 root root 64 Aug  5 06:59 10.130.0.15
-rw-r--r--. 1 root root 64 Aug  5 07:02 10.130.0.20
-rw-r--r--. 1 root root 12 Aug  6 22:52 last_reserved_ip.0

Examples

>>> ls_ocp_cni_openshift_sdn.files_of("/var/lib/cni/networks/openshift-sdn")
['10.130.0.102', '10.130.0.103', '10.130.0.116', '10.130.0.117', '10.130.0.15', '10.130.0.20', 'last_reserved_ip.0']
class insights.parsers.ls_ocp_cni_openshift_sdn.LsOcpCniOpenshiftSdn(*args, **kwargs)[source]

Bases: CommandParser, FileListing

Warning

This class is deprecated and will be removed from 3.5.0. Please use the insights.parsers.ls.LSla instead.

Parses output of ls -l /var/lib/cni/networks/openshift-sdn command.