nixos/networkd: add missing dhcpV6Config options
This commit is contained in:
parent
1d8c7f5499
commit
53033aaf5a
@ -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" [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user