diff --git a/README.rst b/README.rst index 098baa2..b474782 100644 --- a/README.rst +++ b/README.rst @@ -97,7 +97,7 @@ Windows compatibility. * Only cross-platform features are now guaranteed to be in the result set: ``['inet', 'ether', 'inet6', 'netmask']`` * IPv6 addresses are now stored in a list. -* Removed prefixlen, as it should be added to one IPv6 address, not the +* Removed prefixlen and scopeid, as they should be added for each IPv6 address, not the interface * Allow ``ifcfg`` to be imported despite whether or not the OS system is recognized. diff --git a/src/ifcfg/__init__.py b/src/ifcfg/__init__.py index 9cbd024..2806a44 100644 --- a/src/ifcfg/__init__.py +++ b/src/ifcfg/__init__.py @@ -6,7 +6,7 @@ from . import tools from . import parser -__version__ = "0.11b3" +__version__ = "0.11b4" Log = tools.minimal_logger(__name__) diff --git a/src/ifcfg/parser.py b/src/ifcfg/parser.py index 569cb19..e7d500c 100644 --- a/src/ifcfg/parser.py +++ b/src/ifcfg/parser.py @@ -215,7 +215,6 @@ def get_patterns(cls): '.*broadcast (?P[^\s]*).*', '.*netmask (?P[^\s]*).*', '.*ether (?P[^\s]*).*', - '.*scopeid (?P[^\s]*).*', ] @property @@ -266,7 +265,6 @@ def get_patterns(cls): '.*(P-t-P:)(?P[^\s]*).*', '.*(Bcast:)(?P[^\s]*).*', '.*(Mask:)(?P[^\s]*).*', - '.*(Scope:)(?P[^\s]*).*', '.*(RX bytes:)(?P\d+).*', '.*(TX bytes:)(?P\d+).*', ] diff --git a/tests/no_mock_tests.py b/tests/no_mock_tests.py new file mode 100644 index 0000000..843faf3 --- /dev/null +++ b/tests/no_mock_tests.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +""" +Tests that don't mock anything, just run on the host system. +""" +from __future__ import unicode_literals + +import ifcfg + +from .base import IfcfgTestCase + + +class IfcfgTestCase(IfcfgTestCase): + + def test_ifcfg(self): + for interface in ifcfg.interfaces(): + print(interface)