mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
Merge pull request #139445 from em0lar/systemd-networkd-activationpolicy
nixos/networkd: add ActivationPolicy option
This commit is contained in:
commit
8c89f8c99b
@ -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 New Issue
Block a user