[issue17293] uuid.getnode() MAC address on AIX
Serhiy Storchaka
report at bugs.python.org
Wed Oct 1 21:34:00 CEST 2014
Serhiy Storchaka added the comment:
Thank you Aivars for your patch. I have verified and confirm that this method works on AIX and True64 UNIX (it should also work on IRIX, but I can't login in Snakebite's i6).
Here is modified patch. MAC address is now searched only in column with the "Address" header. Added try/except around converting to int for the case if candidate word contains non-heximal digits. Synchronized _netstat_getnode() with current code of _find_mac and extracted common code in separate function. Split _ifconfig_getnode() into separate functions which use different commands: ifconfig, arp and lanscan.
----------
assignee: -> serhiy.storchaka
nosy: +serhiy.storchaka
stage: -> patch review
Added file: http://bugs.python.org/file36768/uuid_netstat_getnode.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17293>
_______________________________________
More information about the Python-bugs-list
mailing list