fix(pxe-infra): actually include dhcp-range in the dnsmasq settings
The previous commit computed `dhcpRange` in the let-block but never put it into the `base` attrset that becomes the dnsmasq settings. The value was dead code, the rendered conf had no dhcp-range line, dnsmasq still didnt open
This commit is contained in:
1 parent
f7acbc6868
commit
a98732d142
1 file changed
+4
-1
@@ -38,7 +38,7 @@ let
|
||||
# times out. The range is gated by the MAC filter
|
||||
# (dhcp-ignore=tag:!known) below, so unknown MACs never see a
|
||||
# lease, but the range must exist.
|
||||
dhcp-range =
|
||||
dhcpRange =
|
||||
if cfg.rangeStart != null && cfg.rangeEnd != null
|
||||
then [ "${cfg.rangeStart},${cfg.rangeEnd},${cfg.leaseTime}" ]
|
||||
# Default: the entire bridge subnet minus the host address.
|
||||
@@ -64,6 +64,9 @@ let
|
||||
log-facility = "-";
|
||||
# Static reservations.
|
||||
dhcp-host = dhcpHostLines;
|
||||
# Free pool — must be present for the DHCP server socket to
|
||||
# open at all. See `dhcpRange` above for the default.
|
||||
dhcp-range = dhcpRange;
|
||||
};
|
||||
|
||||
# Optional TFTP module on the same dnsmasq instance. Used to
|
||||
|
||||
Reference in new issue
Block a user