summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-04-27 23:21:34 +0100
committerGitHub <noreply@github.com>2018-04-27 23:21:34 +0100
commit91e58ad48ae5f6d64d3989f7ca133fe90a9b20cc (patch)
tree7468568a2d4998dada59a1d513416595d4e95d3e /nixos
parent14568ddaabd23a96ffa537728888e1d8e8ee687a (diff)
parent65c1cfce3f72436a3a9fcba8053f6a7a5c6e078e (diff)
Merge pull request #39613 from bgamari/networkd-requiredforonline
networkd: Allow RequiredForOnline field in [Link] section
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/networkd.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index eea10613ea58..e95ca27914ec 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -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)
];