Merge "Fix IPv6 resolution during Upgrade"

This commit is contained in:
Zuul 2024-03-08 20:32:58 +00:00 committed by Gerrit Code Review
commit a95b4ee8d3
1 changed files with 8 additions and 0 deletions

View File

@ -2720,6 +2720,14 @@ else # vlan
# Check whether to use inet or inet6
ipv6_addr=$(dig +short AAAA controller.internal)
if [[ -z "${ipv6_addr}" ]]
then
# during an upgrade the controller.internal may not be defined
# but the scenario could be IPv6. So try to resolve the controller
ipv6_addr=$(dig +short AAAA controller)
fi
if [[ -n "${ipv6_addr}" ]]
then
boot_address_family=inet6