But what I describe above is not enough. Because netaddr module use
index files, generated from oui.txt and iab.txt
So you need also to update those index files otherwise the mac vendor
look up will be broken.
So I created symlinks in /usr/lib/python2.7/dist-packages/netaddr/eui
for oui.idx and iab.idx towards /var/lib/ieee-data/oui.idx and /var/lib
/ieee-data/iab.idx respectivelly.
Then used that python script to regenerate the index files
from netaddr.eui import ieee
ouiidx = ieee.FileIndexer('oui.idx')
oui = ieee.OUIIndexParser('oui.txt')
oui.attach(ouiidx)
oui.parse()
oui.detach(ouiidx)
iabidx = ieee.FileIndexer('iab.idx')
iab = ieee.IABIndexParser('iab.txt')
iab.attach(iabidx)
iab.parse()
iab.detach(iabidx)
I don't know how you could manage this at the package level ? But this
is really needed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1717752
Title:
netaddr should use symlink in /var/lib instead of /usr/share
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-netaddr/+bug/1717752/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs