mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-20 01:12:18 +00:00
47efd8bd34
makedhcp_dhcpv6_dual_stack_boot_server defined its network and went straight to makedhcp <node>. A reservation only reaches a subnet that kea-dhcp6.conf already carries, so makedhcp skipped the node with "Unable to find a Kea DHCPv6 subnet", exited 0, and the case asserted an empty bootfile-url against the expected one. The run reported the case as failing for the wrong reason, and an assertion on the exit status alone would have passed. The case now runs makedhcp -n after makehosts, as makedhcp_dhcpv6_boot_intent does, and asserts two things the earlier version could not tell apart: that the subnet is in the configuration, and that the node has exactly one reservation. A skip now fails on the reservation count rather than on the URL. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>