Bug #16079
closed
ISC DHCP subnets fail to parse with host or class stanzas inside
Added by alvin starr over 8 years ago.
Updated over 6 years ago.
Description
I have a subnet definition
subnet 10.253.2.0 netmask 255.255.255.0 {
stuff
}
If I add a host definition to the subnet like
subnet 10.253.2.0 netmask 255.255.255.0 {
stuff
host puter {
server-name "puter";
hardware ethernet 00:18:dd:01:9e:2e;
fixed-address 10.253.2.127;
}
}
the subnet does not get recoginzed.
If I add in the subnet stanza something like
class "pxeclients" {
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
if option pxe-system-type = 00:02 {
filename "ia64/elilo.efi";
} else if option pxe-system-type = 00:06 {
filename "grub/grub-x86.efi";
} else if option pxe-system-type = 00:07 {
filename "grub/grub-x86_64.efi";
} else {
filename "pxelinux.0";
}
}
the same thing happens.
If I extract the static hosts into dhcpd.hosts and include it then things are ok.
- Project changed from Foreman to Smart Proxy
- Category changed from DHCP to DHCP
- Subject changed from dhcp proxy parsing problem. to ISC DHCP subnets fail to parse with host or class stanzas inside
- Description updated (diff)
- Bugzilla link set to 1393914
Regression introduced by #12211
- Related to Feature #12211: Improve DHCP subnets parsing to get more informations from DHCP server added
- Status changed from New to Ready For Testing
- Assignee set to Lukas Zapletal
- Pull request https://github.com/theforeman/smart-proxy/pull/474 added
- Target version set to 1.4.3
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Translation missing: en.field_release set to 189
- Related to Bug #14808: Foreman-Proxy DHCP class doesn't properly read subnets containing if statements added
- Has duplicate Bug #17800: ISC Dhcpd Config Parse Error added
- Has duplicate Bug #18674: on [commit,release,expiry] sections in dhcpd.conf cause subnet to not load in smart proxy added
- Related to Refactor #19441: Rewrite isc dhcpd config parser to support various nested blocks added
- Related to deleted (Refactor #19441: Rewrite isc dhcpd config parser to support various nested blocks )
Also available in: Atom
PDF