nixos/networkd: add ActivationPolicy option
This commit is contained in:
parent
88aaa95bfe
commit
e95a50a64b
|
@ -384,6 +384,7 @@ let
|
|||
"AllMulticast"
|
||||
"Unmanaged"
|
||||
"RequiredForOnline"
|
||||
"ActivationPolicy"
|
||||
])
|
||||
(assertMacAddress "MACAddress")
|
||||
(assertByteFormat "MTUBytes")
|
||||
|
@ -402,6 +403,14 @@ let
|
|||
"enslaved"
|
||||
"routable"
|
||||
]))
|
||||
(assertValueOneOf "ActivationPolicy" ([
|
||||
"up"
|
||||
"always-up"
|
||||
"manual"
|
||||
"always-down"
|
||||
"down"
|
||||
"bound"
|
||||
]))
|
||||
];
|
||||
|
||||
sectionNetwork = checkUnitConfig "Network" [
|
||||
|
|
Loading…
Reference in a new issue