pygui: fixed edit node mac setting to auto to properly clear out current mac setting

This commit is contained in:
Blake Harnden 2020-12-07 21:08:05 -08:00
parent a23ef7d603
commit 6793382f44

View file

@ -342,7 +342,9 @@ class NodeConfigDialog(Dialog):
mac = data.mac.get()
auto_mac = data.is_auto.get()
if not auto_mac and not netaddr.valid_mac(mac):
if auto_mac:
iface.mac = None
elif not auto_mac and not netaddr.valid_mac(mac):
title = f"MAC Error for {iface.name}"
messagebox.showerror(title, "Invalid MAC Address")
error = True