summary refs log tree commit diff
path: root/nixos/modules/system/boot/networkd.nix
diff options
context:
space:
mode:
authorAlexander Shpilkin <ashpilkin@gmail.com>2018-09-07 01:56:46 +0300
committerAlexander Shpilkin <ashpilkin@gmail.com>2018-09-07 01:56:46 +0300
commit423e46a24f240a6e9a6ddcb788db51989f57eb58 (patch)
treebe99af5af79aa094852b0bc569568c0498c331ba /nixos/modules/system/boot/networkd.nix
parentca2ba44cab47767c8127d1c8633e2b581644eb8f (diff)
downloadnixpkgs-423e46a24f240a6e9a6ddcb788db51989f57eb58.tar
nixpkgs-423e46a24f240a6e9a6ddcb788db51989f57eb58.tar.gz
nixpkgs-423e46a24f240a6e9a6ddcb788db51989f57eb58.tar.bz2
nixpkgs-423e46a24f240a6e9a6ddcb788db51989f57eb58.tar.lz
nixpkgs-423e46a24f240a6e9a6ddcb788db51989f57eb58.tar.xz
nixpkgs-423e46a24f240a6e9a6ddcb788db51989f57eb58.tar.zst
nixpkgs-423e46a24f240a6e9a6ddcb788db51989f57eb58.zip
nixos/networkd: support MULTICAST flag on links
Support Multicast= option in [Link] section of network units,
introduced in systemd/systemd#9118.
Diffstat (limited to 'nixos/modules/system/boot/networkd.nix')
-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 4bacf0f126a..8e748dd27d7 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)
   ];