add Promiscuous as valid value for linkConfig

configuring a network via
`systemd.network.networks.<name>.linkConfig`
does not allow to set the attr Promiscuous = "true";

This referes to:
https://www.freedesktop.org/software/systemd/man/systemd.network.html#Promiscuous=

Signed-off-by: Philippe Schaaf <philippe.schaaf@secunet.com>
This commit is contained in:
Philippe Schaaf 2022-08-02 13:36:01 +02:00
parent d2ac16d35a
commit d5e7f6a613

View File

@ -454,12 +454,14 @@ let
"RequiredForOnline" "RequiredForOnline"
"RequiredFamilyForOnline" "RequiredFamilyForOnline"
"ActivationPolicy" "ActivationPolicy"
"Promiscuous"
]) ])
(assertMacAddress "MACAddress") (assertMacAddress "MACAddress")
(assertByteFormat "MTUBytes") (assertByteFormat "MTUBytes")
(assertValueOneOf "ARP" boolValues) (assertValueOneOf "ARP" boolValues)
(assertValueOneOf "Multicast" boolValues) (assertValueOneOf "Multicast" boolValues)
(assertValueOneOf "AllMulticast" boolValues) (assertValueOneOf "AllMulticast" boolValues)
(assertValueOneOf "Promiscuous" boolValues)
(assertValueOneOf "Unmanaged" boolValues) (assertValueOneOf "Unmanaged" boolValues)
(assertValueOneOf "RequiredForOnline" (boolValues ++ [ (assertValueOneOf "RequiredForOnline" (boolValues ++ [
"missing" "missing"