mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-20 17:32:15 +00:00
a701dfc206
sles.pm built its install URLs as "$server:$port". An IPv6 address contains colons, so a node was told to install from "http://2001:db8:156::1:80/install/leap15.6/x86_64/1" and could not reach the repository. The same join was in the statelite and stateless imgurl=. The XCAT= argument beside them was already bracketed. rootimg_url() and autoyast_boot_args() now build those URLs through xCAT::NetworkUtils::uri_authority(), which brackets an IPv6 address and passes a name or a !myipfn! placeholder through unchanged. uri_authority is the former xcatd_cmdline_address, renamed because three URL sites now share it; xcatd_cmdline_address stays as a wrapper for its own callers. xCAT-test/unit/sles_install_url_ipv6.t fails its four IPv6 assertions when the colon join is restored. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>