nixos/networkd: Allow RequiredForOnline field in [Link] section
This was previously missing.
This commit is contained in:
parent
bea11a34fb
commit
65c1cfce3f
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
];
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue