mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-22 17:31:04 +03:00
nixos/networkd: add missing options for DHCPServer and IPV6SendRA
This commit is contained in:
parent
629ec1b38a
commit
8b74b21d23
1 changed files with 9 additions and 0 deletions
|
@ -800,10 +800,12 @@ let
|
||||||
|
|
||||||
sectionDHCPServer = checkUnitConfig "DHCPServer" [
|
sectionDHCPServer = checkUnitConfig "DHCPServer" [
|
||||||
(assertOnlyFields [
|
(assertOnlyFields [
|
||||||
|
"ServerAddress"
|
||||||
"PoolOffset"
|
"PoolOffset"
|
||||||
"PoolSize"
|
"PoolSize"
|
||||||
"DefaultLeaseTimeSec"
|
"DefaultLeaseTimeSec"
|
||||||
"MaxLeaseTimeSec"
|
"MaxLeaseTimeSec"
|
||||||
|
"UplinkInterface"
|
||||||
"EmitDNS"
|
"EmitDNS"
|
||||||
"DNS"
|
"DNS"
|
||||||
"EmitNTP"
|
"EmitNTP"
|
||||||
|
@ -817,10 +819,15 @@ let
|
||||||
"EmitLPR"
|
"EmitLPR"
|
||||||
"LPR"
|
"LPR"
|
||||||
"EmitRouter"
|
"EmitRouter"
|
||||||
|
"Router"
|
||||||
"EmitTimezone"
|
"EmitTimezone"
|
||||||
"Timezone"
|
"Timezone"
|
||||||
"SendOption"
|
"SendOption"
|
||||||
"SendVendorOption"
|
"SendVendorOption"
|
||||||
|
"BindToInterface"
|
||||||
|
"RelayTarget"
|
||||||
|
"RelayAgentCircuitId"
|
||||||
|
"RelayAgentRemoteId"
|
||||||
])
|
])
|
||||||
(assertInt "PoolOffset")
|
(assertInt "PoolOffset")
|
||||||
(assertMinimum "PoolOffset" 0)
|
(assertMinimum "PoolOffset" 0)
|
||||||
|
@ -834,6 +841,7 @@ let
|
||||||
(assertValueOneOf "EmitLPR" boolValues)
|
(assertValueOneOf "EmitLPR" boolValues)
|
||||||
(assertValueOneOf "EmitRouter" boolValues)
|
(assertValueOneOf "EmitRouter" boolValues)
|
||||||
(assertValueOneOf "EmitTimezone" boolValues)
|
(assertValueOneOf "EmitTimezone" boolValues)
|
||||||
|
(assertValueOneOf "BindToInterface" boolValues)
|
||||||
];
|
];
|
||||||
|
|
||||||
sectionIPv6SendRA = checkUnitConfig "IPv6SendRA" [
|
sectionIPv6SendRA = checkUnitConfig "IPv6SendRA" [
|
||||||
|
@ -842,6 +850,7 @@ let
|
||||||
"OtherInformation"
|
"OtherInformation"
|
||||||
"RouterLifetimeSec"
|
"RouterLifetimeSec"
|
||||||
"RouterPreference"
|
"RouterPreference"
|
||||||
|
"UplinkInterface"
|
||||||
"EmitDNS"
|
"EmitDNS"
|
||||||
"DNS"
|
"DNS"
|
||||||
"EmitDomains"
|
"EmitDomains"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue