mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-22 02:12:16 +00:00
150d820300
After chdef <node> ip=<IPv6> and makehosts <node>, /etc/hosts held the old IPv4 line and the new IPv6 line of the node. node_address_family answers 4 for such a node, so nodeset rendered ip=dhcp and an IPv4 kickstart with no warning. addnode matches a node name only against lines of the family it writes, which keeps both lines of a dual-stack node. When makehosts writes hosts.ip and the node has no line of that family, the address moved to the other family. addnode now replaces the old line in that case. A node with a line of each family keeps both, and makehosts -m is unchanged. ipv6_provisioning.rst says how to move a dual-stack node to IPv6 only. makehosts_family_change.t fails 3 of 6 assertions without this change. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>