mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 22:51:22 +00:00
Merge pull request #188309 from Sohalt/systemd-networkd-dhcpserver-missing-options
This commit is contained in:
commit
2ae8a945fb
@ -803,10 +803,12 @@ let
|
||||
|
||||
sectionDHCPServer = checkUnitConfig "DHCPServer" [
|
||||
(assertOnlyFields [
|
||||
"ServerAddress"
|
||||
"PoolOffset"
|
||||
"PoolSize"
|
||||
"DefaultLeaseTimeSec"
|
||||
"MaxLeaseTimeSec"
|
||||
"UplinkInterface"
|
||||
"EmitDNS"
|
||||
"DNS"
|
||||
"EmitNTP"
|
||||
@ -820,10 +822,15 @@ let
|
||||
"EmitLPR"
|
||||
"LPR"
|
||||
"EmitRouter"
|
||||
"Router"
|
||||
"EmitTimezone"
|
||||
"Timezone"
|
||||
"SendOption"
|
||||
"SendVendorOption"
|
||||
"BindToInterface"
|
||||
"RelayTarget"
|
||||
"RelayAgentCircuitId"
|
||||
"RelayAgentRemoteId"
|
||||
])
|
||||
(assertInt "PoolOffset")
|
||||
(assertMinimum "PoolOffset" 0)
|
||||
@ -837,6 +844,7 @@ let
|
||||
(assertValueOneOf "EmitLPR" boolValues)
|
||||
(assertValueOneOf "EmitRouter" boolValues)
|
||||
(assertValueOneOf "EmitTimezone" boolValues)
|
||||
(assertValueOneOf "BindToInterface" boolValues)
|
||||
];
|
||||
|
||||
sectionIPv6SendRA = checkUnitConfig "IPv6SendRA" [
|
||||
@ -845,6 +853,7 @@ let
|
||||
"OtherInformation"
|
||||
"RouterLifetimeSec"
|
||||
"RouterPreference"
|
||||
"UplinkInterface"
|
||||
"EmitDNS"
|
||||
"DNS"
|
||||
"EmitDomains"
|
||||
|
Loading…
Reference in New Issue
Block a user