improved netaddr mac dialect usage to leverage constructor parameter

This commit is contained in:
Blake Harnden 2020-05-01 17:40:53 -07:00
parent 4ae5936bdc
commit 686026d9f2
4 changed files with 6 additions and 12 deletions

View file

@ -354,8 +354,7 @@ class NodeConfigDialog(Dialog):
error = True
break
elif not auto_mac:
mac = netaddr.EUI(mac)
mac.dialect = netaddr.mac_unix_expanded
mac = netaddr.EUI(mac, dialect=netaddr.mac_unix_expanded)
interface.mac = str(mac)
# redraw