nixos/networkd: support Independent
flag for VXLAN netdevs
According to networkd netdev's manpage: ``` Independent= Takes a boolean. When true, the vxlan interface is created without any underlying network interface. Defaults to false, which means that a .network file that requests this VXLAN interface using VXLAN= is required for the VXLAN to be created. ``` is a valid option for [VXLAN] section.
This commit is contained in:
parent
9cf56143a3
commit
faba775beb
1 changed files with 2 additions and 0 deletions
|
@ -222,6 +222,7 @@ let
|
|||
"PortRange"
|
||||
"FlowLabel"
|
||||
"IPDoNotFragment"
|
||||
"Independent"
|
||||
])
|
||||
(assertInt "VNI")
|
||||
(assertRange "VNI" 1 16777215)
|
||||
|
@ -241,6 +242,7 @@ let
|
|||
(assertInt "FlowLabel")
|
||||
(assertRange "FlowLabel" 0 1048575)
|
||||
(assertValueOneOf "IPDoNotFragment" (boolValues + ["inherit"]))
|
||||
(assertValueOneOf "Independent" boolValues)
|
||||
];
|
||||
|
||||
sectionTunnel = checkUnitConfig "Tunnel" [
|
||||
|
|
Loading…
Reference in a new issue