diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-04-27 23:21:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-27 23:21:34 +0100 |
commit | 91e58ad48ae5f6d64d3989f7ca133fe90a9b20cc (patch) | |
tree | 7468568a2d4998dada59a1d513416595d4e95d3e | |
parent | 14568ddaabd23a96ffa537728888e1d8e8ee687a (diff) | |
parent | 65c1cfce3f72436a3a9fcba8053f6a7a5c6e078e (diff) | |
download | nixlib-91e58ad48ae5f6d64d3989f7ca133fe90a9b20cc.tar nixlib-91e58ad48ae5f6d64d3989f7ca133fe90a9b20cc.tar.gz nixlib-91e58ad48ae5f6d64d3989f7ca133fe90a9b20cc.tar.bz2 nixlib-91e58ad48ae5f6d64d3989f7ca133fe90a9b20cc.tar.lz nixlib-91e58ad48ae5f6d64d3989f7ca133fe90a9b20cc.tar.xz nixlib-91e58ad48ae5f6d64d3989f7ca133fe90a9b20cc.tar.zst nixlib-91e58ad48ae5f6d64d3989f7ca133fe90a9b20cc.zip |
Merge pull request #39613 from bgamari/networkd-requiredforonline
networkd: Allow RequiredForOnline field in [Link] section
-rw-r--r-- | nixos/modules/system/boot/networkd.nix | 3 |
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) ]; |