Skip to content

Commit

Permalink
Bump to 0.11b4, removing another ipv6 address-specific property that …
Browse files Browse the repository at this point in the history
…failed
  • Loading branch information
benjaoming committed Aug 1, 2017
1 parent 6aa3382 commit 1f15358
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/ifcfg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from . import tools
from . import parser

__version__ = "0.11b3"
__version__ = "0.11b4"

Log = tools.minimal_logger(__name__)

Expand Down
2 changes: 0 additions & 2 deletions src/ifcfg/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ def get_patterns(cls):
'.*broadcast (?P<broadcast>[^\s]*).*',
'.*netmask (?P<netmask>[^\s]*).*',
'.*ether (?P<ether>[^\s]*).*',
'.*scopeid (?P<scopeid>[^\s]*).*',
]

@property
Expand Down Expand Up @@ -266,7 +265,6 @@ def get_patterns(cls):
'.*(P-t-P:)(?P<ptp>[^\s]*).*',
'.*(Bcast:)(?P<broadcast>[^\s]*).*',
'.*(Mask:)(?P<netmask>[^\s]*).*',
'.*(Scope:)(?P<scopeid>[^\s]*).*',
'.*(RX bytes:)(?P<rxbytes>\d+).*',
'.*(TX bytes:)(?P<txbytes>\d+).*',
]
Expand Down
16 changes: 16 additions & 0 deletions tests/no_mock_tests.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 1f15358

Please sign in to comment.