nixos/networkd: add missing dhcpV6Config options

This commit is contained in:
Vincent Haupert 2021-01-30 11:04:35 +01:00
parent 1d8c7f5499
commit 53033aaf5a
No known key found for this signature in database
GPG Key ID: A8B605E96F82B4E4

View File

@ -643,18 +643,29 @@ let
sectionDHCPv6 = checkUnitConfig "DHCPv6" [ sectionDHCPv6 = checkUnitConfig "DHCPv6" [
(assertOnlyFields [ (assertOnlyFields [
"UseAddress"
"UseDNS" "UseDNS"
"UseNTP" "UseNTP"
"RouteMetric"
"RapidCommit" "RapidCommit"
"MUDURL"
"RequestOptions"
"SendVendorOption"
"ForceDHCPv6PDOtherInformation" "ForceDHCPv6PDOtherInformation"
"PrefixDelegationHint" "PrefixDelegationHint"
"RouteMetric" "WithoutRA"
"SendOption"
"UserClass"
"VendorClass"
]) ])
(assertValueOneOf "UseAddress" boolValues)
(assertValueOneOf "UseDNS" boolValues) (assertValueOneOf "UseDNS" boolValues)
(assertValueOneOf "UseNTP" boolValues) (assertValueOneOf "UseNTP" boolValues)
(assertInt "RouteMetric")
(assertValueOneOf "RapidCommit" boolValues) (assertValueOneOf "RapidCommit" boolValues)
(assertValueOneOf "ForceDHCPv6PDOtherInformation" boolValues) (assertValueOneOf "ForceDHCPv6PDOtherInformation" boolValues)
(assertInt "RouteMetric") (assertValueOneOf "WithoutRA" ["solicit" "information-request"])
(assertRange "SendOption" 1 65536)
]; ];
sectionDHCPServer = checkUnitConfig "DHCPServer" [ sectionDHCPServer = checkUnitConfig "DHCPServer" [