Actions
Bug #22651
closedISC DHCP config parser ignores 'include' within 'shared_network'
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
DHCP
Target version:
-
Description
I was getting errors of the following form when trying to perform any DHCP operation:
ERROR -- : No Subnet detected for: 10.100.1.0
After debugging this for a bit, it seems that the problem is that my dhcpd.conf looks like:
shared-network syslab { include "/etc/dhcp/subnets/10.100.0.0.conf"; include "/etc/dhcp/subnets/10.100.1.0.conf"; include "/etc/dhcp/subnets/10.100.2.0.conf"; include "/etc/dhcp/subnets/10.100.3.0.conf"; include "/etc/dhcp/subnets/10.100.5.0.conf"; }
(where the referenced files contain pretty standard subnet declarations)
The ISC configuration_parser only processes include_file directives at the top level, so it was ignoring the includes and missing the subnet declarations, causing the DHCP plugin to be unable to detect any subnets.
Actions