Merge pull request #244466 from RaitoBezarius/networkd/netdev-mac

nixos/networkd: fix netdev MAC addresses asserts
This commit is contained in:
Florian Klink 2023-07-20 16:39:32 +03:00 committed by GitHub
commit 77f8c78bea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ in rec {
"Systemd ${group} field `${name}' must be a valid MAC address.";
assertNetdevMacAddress = name: group: attr:
optional (attr ? ${name} && (! isMacAddress attr.${name} || attr.${name} != "none"))
optional (attr ? ${name} && (! isMacAddress attr.${name} && attr.${name} != "none"))
"Systemd ${group} field `${name}` must be a valid MAC address or the special value `none`.";