mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-24 11:22:18 +00:00
fbc64196ba
Two gaps in the ISC DHCPv6 path. An IPv6 node on an ISC backend gets no resolver and no domain-search list. addrangedetection keys %netcfgs on networks.net, which a conf may write with no prefix length, while addnet6 names the subnet "<net>/<prefix>" from the "ip -6 route" output. addnet6 read the domain, the nameservers and the ddnsdomain under the long name alone, so all three were undef and the subnet6 carried neither statement. dynamic_range_for in the same file already fell back to the bare net, which is why the range was the only value that survived. And "makedhcp -d <node>" removed the DHCPv4 host alone. addnode6 creates the DHCPv6 host as a separate omapi object on port 7912, and delnode never touched it, so the reservation outlived the node and kept its address and its boot file. net_config_for does the lookup with the same fallback dynamic_range_for uses, and addnet6 takes its values from it. isc_dhcp6_subnet_statements renders the domain and resolver statements from that entry, so they can be read back. delnode6 writes the removal over the open DHCPv6 session. dhcp_isc_dhcpv6_subnet_and_delete.t captures both. Removing the fallback from net_config_for fails its three lookup assertions and leaves the dynamic_range_for assertion passing. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>