mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-29 22:02:20 +00:00
8eb12a1392
An IPv6-only openSUSE node completed its install with the static IPv6 address in its AutoYaST profile, then booted with a link-local address only. The applied profile on the node carried bootproto static and the address, and ifcfg-eth0 read BOOTPROTO=dhcp with a modification time later than the install. post.sles.common writes that file. It keeps the interface configuration only when MANAGEDADDRESSMODE reads static, and managed_address_mode returned site.managedaddressmode, which was unset. xCAT wrote the static configuration and then removed it. managed_address_mode now takes the node and reports static for a node that xCAT::NetworkUtils::node_is_ipv6_only reports as IPv6-only. A node with any IPv4 address keeps the site value, so an IPv4 and a dual-stack cluster are unchanged. Captured by xCAT-test/unit/template_ipv6_rendering.t, where one of the three new assertions fails without this change. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>