improved netaddr mac dialect usage to leverage constructor parameter
This commit is contained in:
parent
4ae5936bdc
commit
686026d9f2
4 changed files with 6 additions and 12 deletions
|
@ -350,8 +350,7 @@ class CoreTlvDataMacAddr(CoreTlvDataObj):
|
|||
"""
|
||||
# only use 48 bits
|
||||
value = binascii.hexlify(value[2:]).decode()
|
||||
mac = netaddr.EUI(value)
|
||||
mac.dialect = netaddr.mac_unix
|
||||
mac = netaddr.EUI(value, dialect=netaddr.mac_unix_expanded)
|
||||
return str(mac)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue