mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-07-31 18:19:40 +00:00
39f721713e
Boot URLs handed to nodes always carried an explicit :80 even when the HTTP server listens on the default port. grub2.pm already omits the port when it is 80; make the xNBA, genesis and DHCP boot URLs consistent with it. $portsuffix is empty when site.httpport is unset or 80 and ":<port>" otherwise, so a non-default port is unchanged. Covers the ISC and Kea paths in dhcp.pm, xnba.pm, mknb.pm, and the Kea xNBA client classes in BootPolicy.pm. dhcp_boot_policy.t and mknb_xcatd_address.t follow the new URLs and gain cases for a non-default and an unset port. The floating-address guard in mknb_xcatd_address.t also drops :80 so that it keeps matching. Recovered from the unmerged lenovobuild branch (cd61fd9d,a2f77ea9,1035841b,b7db0e2,792fe6d). Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>