nixos/networkd: Add more valid values for RequiredForOnline

`RequiredForOnline` allows for a boolean value or operational state.
This adds the values for all valid the operational states.
This commit is contained in:
Dustin Frisch
2019-11-06 13:12:34 +01:00
parent b508ecb6ef
commit 0aeaf4dfe0

View File

@@ -276,7 +276,7 @@ let
(assertValueOneOf "ARP" boolValues)
(assertValueOneOf "Multicast" boolValues)
(assertValueOneOf "Unmanaged" boolValues)
(assertValueOneOf "RequiredForOnline" boolValues)
(assertValueOneOf "RequiredForOnline" (boolValues ++ ["off" "no-carrier" "dormant" "degraded-carrier" "carrier" "degraded" "enslaved" "routable"]))
];