nixos/networkd: support MULTICAST flag on links

Support Multicast= option in [Link] section of network units,
introduced in systemd/systemd#9118.
This commit is contained in:
Alexander Shpilkin 2018-09-07 01:56:46 +03:00
parent ca2ba44cab
commit 423e46a24f
No known key found for this signature in database
GPG Key ID: 55F6F5B75637BD38

View File

@ -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)
];