mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-05 04:27:55 +00:00
f021fe74fe
xCAT resolves the provisioning interface as installnic -> primarynic -> mac.mac, and either attribute may hold an interface NAME or a MAC address; xCAT::NetworkUtils::gen_net_boot_params owns that order for the netboot kernel parameters. The Subiquity template short-circuits it: an empty installnic is treated as "mac" straight away, so a node that configures only primarynic is installed with a netplan that matches on mac.mac and never renames the interface, and a primarynic holding a MAC address is ignored entirely. Assert the full order against a resolver in xCAT::Template -- installnic as a name, installnic as a MAC, installnic empty with primarynic as a name, empty with primarynic as a MAC, both empty, and the literal "mac" -- plus multi-entry mac.mac resolution, and then run the template's own netplan late-command with the resolved values and compare the file it writes. These fail on the current template, which carries the resolution in shell and has no resolver to call. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>