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:
parent
ca2ba44cab
commit
423e46a24f
@ -249,11 +249,12 @@ let
|
|||||||
# .network files have a [Link] section with different options than in .netlink files
|
# .network files have a [Link] section with different options than in .netlink files
|
||||||
checkNetworkLink = checkUnitConfig "Link" [
|
checkNetworkLink = checkUnitConfig "Link" [
|
||||||
(assertOnlyFields [
|
(assertOnlyFields [
|
||||||
"MACAddress" "MTUBytes" "ARP" "Unmanaged" "RequiredForOnline"
|
"MACAddress" "MTUBytes" "ARP" "Multicast" "Unmanaged" "RequiredForOnline"
|
||||||
])
|
])
|
||||||
(assertMacAddress "MACAddress")
|
(assertMacAddress "MACAddress")
|
||||||
(assertByteFormat "MTUBytes")
|
(assertByteFormat "MTUBytes")
|
||||||
(assertValueOneOf "ARP" boolValues)
|
(assertValueOneOf "ARP" boolValues)
|
||||||
|
(assertValueOneOf "Multicast" boolValues)
|
||||||
(assertValueOneOf "Unmanaged" boolValues)
|
(assertValueOneOf "Unmanaged" boolValues)
|
||||||
(assertValueOneOf "RquiredForOnline" boolValues)
|
(assertValueOneOf "RquiredForOnline" boolValues)
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user