"""
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']
"""
from .. import FileListing
from .. import parser, CommandParser
from insights.specs import Specs
from insights.util import deprecated
[docs]
@parser(Specs.ls_ocp_cni_openshift_sdn)
class LsOcpCniOpenshiftSdn(CommandParser, FileListing):
"""
.. warning::
This class is deprecated and will be removed from 3.5.0.
Please use the :class:`insights.parsers.ls.LSla` instead.
Parses output of ``ls -l /var/lib/cni/networks/openshift-sdn`` command.
"""
def __init__(self, *args, **kwargs):
deprecated(LsOcpCniOpenshiftSdn, "Please use the :class:`insights.parsers.ls.LSla` instead.", "3.5.0")
super(LsOcpCniOpenshiftSdn, self).__init__(*args, **kwargs)