nixos/networkd: Allow RequiredForOnline field in [Link] section

This was previously missing.
This commit is contained in:
Ben Gamari 2018-04-27 16:39:45 +00:00
parent bea11a34fb
commit 65c1cfce3f

View file

@ -146,12 +146,13 @@ let
# .network files have a [Link] section with different options than in .netlink files
checkNetworkLink = checkUnitConfig "Link" [
(assertOnlyFields [
"MACAddress" "MTUBytes" "ARP" "Unmanaged"
"MACAddress" "MTUBytes" "ARP" "Unmanaged" "RequiredForOnline"
])
(assertMacAddress "MACAddress")
(assertByteFormat "MTUBytes")
(assertValueOneOf "ARP" boolValues)
(assertValueOneOf "Unmanaged" boolValues)
(assertValueOneOf "RquiredForOnline" boolValues)
];