diff options
author | Alexander Shpilkin <ashpilkin@gmail.com> | 2018-09-07 01:56:46 +0300 |
---|---|---|
committer | Alexander Shpilkin <ashpilkin@gmail.com> | 2018-09-07 01:56:46 +0300 |
commit | 423e46a24f240a6e9a6ddcb788db51989f57eb58 (patch) | |
tree | be99af5af79aa094852b0bc569568c0498c331ba | |
parent | ca2ba44cab47767c8127d1c8633e2b581644eb8f (diff) | |
download | nixlib-423e46a24f240a6e9a6ddcb788db51989f57eb58.tar nixlib-423e46a24f240a6e9a6ddcb788db51989f57eb58.tar.gz nixlib-423e46a24f240a6e9a6ddcb788db51989f57eb58.tar.bz2 nixlib-423e46a24f240a6e9a6ddcb788db51989f57eb58.tar.lz nixlib-423e46a24f240a6e9a6ddcb788db51989f57eb58.tar.xz nixlib-423e46a24f240a6e9a6ddcb788db51989f57eb58.tar.zst nixlib-423e46a24f240a6e9a6ddcb788db51989f57eb58.zip |
nixos/networkd: support MULTICAST flag on links
Support Multicast= option in [Link] section of network units, introduced in systemd/systemd#9118.
-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 4bacf0f126a4..8e748dd27d7d 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -249,11 +249,12 @@ let # .network files have a [Link] section with different options than in .netlink files checkNetworkLink = checkUnitConfig "Link" [ (assertOnlyFields [ - "MACAddress" "MTUBytes" "ARP" "Unmanaged" "RequiredForOnline" + "MACAddress" "MTUBytes" "ARP" "Multicast" "Unmanaged" "RequiredForOnline" ]) (assertMacAddress "MACAddress") (assertByteFormat "MTUBytes") (assertValueOneOf "ARP" boolValues) + (assertValueOneOf "Multicast" boolValues) (assertValueOneOf "Unmanaged" boolValues) (assertValueOneOf "RquiredForOnline" boolValues) ]; |