mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-19 17:02:15 +00:00
bfbc014ffe
sles.pm matched ipv6 nowhere in 2801 lines and the SUSE templates wrote "<bootproto>dhcp</bootproto>" directly, so an IPv6-only SUSE node had no way to configure its installer: DHCP cannot serve it, and SUSE has no static handoff on the kernel command line. _autoyast_network6 builds the networking section of such a node, with a static interface, the address of the node and a prefix length, which is what AutoYaST takes for IPv6 instead of a netmask, and a default route carrying the IPv6 gateway. The #YAST2NET6# directive chooses between that and the DHCP block the templates carried. An IPv4 node gets that block unchanged, which is why the existing #YAST2NET# was not used: its DHCP arm renders something else, and leap15.6 is a gating cell. compute.leap15.tmpl and compute.sle15.tmpl take the directive. autoyast_ipv6_network.t covers the section. Emitting a netmask instead of a prefix length fails 2 of its 11 assertions. The IPv4 output of the directive was compared with the text it replaced and is identical. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>