diff --git a/docs/parsers/ifconfig.md b/docs/parsers/ifconfig.md index 1505c5a5..24c34b92 100644 --- a/docs/parsers/ifconfig.md +++ b/docs/parsers/ifconfig.md @@ -194,12 +194,6 @@ info() ``` Provides parser metadata (version, author, etc.) -## IfconfigParser -```python -IfconfigParser(console_output) -``` -ifconfig parser module written by threeheadedknight@protonmail.com - ## parse ```python parse(data, raw=False, quiet=False) diff --git a/jc/parsers/ifconfig.py b/jc/parsers/ifconfig.py index 89668c23..0bf98406 100644 --- a/jc/parsers/ifconfig.py +++ b/jc/parsers/ifconfig.py @@ -206,7 +206,7 @@ class info(): __version__ = info.version -class IfconfigParser(object): +class _IfconfigParser(object): """ifconfig parser module written by threeheadedknight@protonmail.com""" # Author: threeheadedknight@protonmail.com # Date created: 30.06.2018 17:03 @@ -411,7 +411,7 @@ class IfconfigParser(object): @staticmethod def update_interface_details(interface): - for attr in IfconfigParser.attributes: + for attr in _IfconfigParser.attributes: if attr not in interface: interface[attr] = None return namedtuple('Interface', interface.keys())(**interface) @@ -488,7 +488,7 @@ def parse(data, raw=False, quiet=False): if jc.utils.has_data(data): - parsed = IfconfigParser(console_output=data) + parsed = _IfconfigParser(console_output=data) interfaces = parsed.get_interfaces() # convert ifconfigparser output to a dictionary