Commit 3226dce2 authored by Franco Fichtner's avatar Franco Fichtner

interfaces: fix py-netaddr mac listing for new version

parent f2f3b0c0
...@@ -36,8 +36,8 @@ import netaddr.eui.ieee ...@@ -36,8 +36,8 @@ import netaddr.eui.ieee
if __name__ == '__main__': if __name__ == '__main__':
result=dict() result=dict()
if os.path.isfile(netaddr.eui.ieee.OUI_REGISTRY): if os.path.isfile(netaddr.eui.ieee.OUI_REGISTRY_PATH):
for line in open(netaddr.eui.ieee.OUI_REGISTRY).read().split('\n'): for line in open(netaddr.eui.ieee.OUI_REGISTRY_PATH).read().split('\n'):
if line.find('(base 16)') > -1: if line.find('(base 16)') > -1:
parts=line.split('(base 16)') parts=line.split('(base 16)')
if len(parts) >= 2: if len(parts) >= 2:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment