mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-27 04:42:17 +00:00
b5300555a6
With mac.duid=canonical or firmware, an installed KVM guest whose domain an earlier mkvm defined sends a DHCPv6 client identifier that its reservation does not hold. makedhcp applies the policy to vpd.uuid. configdhcpv6duid applied it to product_uuid of the node. In such a guest product_uuid is the byte swap of vpd.uuid, so the script wrote the other UUID order. mypostscript now exports vpd.uuid as VPDUUID, and configdhcpv6duid applies the policy to it. The script reads product_uuid only when VPDUUID holds no UUID. postscript_dhcpv6_duid.bats asserts the DUID for each policy with a swapped product_uuid, and the VPDUUID export. The tests fail without this change. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>