Comment 2 for bug 1717752

Revision history for this message
zebul666 (zebul666) wrote : Re: netaddr should use symlink in /var/lib instead of /usr/share

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