updated utils.validate_mac format to use unix expanded to avoid singular values
This commit is contained in:
parent
80c06f8216
commit
aa96484fb6
2 changed files with 2 additions and 2 deletions
|
@ -469,7 +469,7 @@ def validate_mac(value: str) -> str:
|
|||
"""
|
||||
try:
|
||||
mac = netaddr.EUI(value)
|
||||
mac.dialect = netaddr.mac_unix
|
||||
mac.dialect = netaddr.mac_unix_expanded
|
||||
return str(mac)
|
||||
except netaddr.AddrFormatError as e:
|
||||
raise CoreError(f"invalid mac address {value}: {e}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue