Merge pull request #139445 from em0lar/systemd-networkd-activationpolicy

nixos/networkd: add ActivationPolicy option
This commit is contained in:
Maximilian Bosch 2021-09-25 17:42:26 +02:00 committed by GitHub
commit 8c89f8c99b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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" [