Implement DNS resolution for secondary pool addresses
Test Plan: [PASS] AIO-SX/DX IPv4 deployment: - Bootstrap (single-stack) without issues. - Create mgmt vlan network and also secondary pool and test other node bootstrap without issues - check host swact (for AIO-DX) is operational. - check lock/unlock without issues [PASS] AIO-SX/DX IPv6 deployment: Test same as above Story: 2011027 Task: 49768 Change-Id: I30ea3a26a5b46a9aad082e89fba83aa476c50079 Signed-off-by: Tara Nath Subedi <Tara.Subedi@windriver.com>
This commit is contained in:
parent
f8d1d96e75
commit
eb82e7cd45
|
@ -2719,24 +2719,16 @@ else # vlan
|
||||||
ilog "Configuring vlan: boot_iface=vlan${mgmt_vlan}"
|
ilog "Configuring vlan: boot_iface=vlan${mgmt_vlan}"
|
||||||
|
|
||||||
# Check whether to use inet or inet6
|
# Check whether to use inet or inet6
|
||||||
ipv6_addr=$(dig +short AAAA controller.internal)
|
# Check for IPv4 format (3 digits followed by a dot, repeated 4 times)
|
||||||
|
if [[ $mgmt_ip =~ ^([0-9]{1,3}\.){3}[0-9]{1,3}$ ]];
|
||||||
if [[ -z "${ipv6_addr}" ]]
|
|
||||||
then
|
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
|
|
||||||
ipv6init=yes
|
|
||||||
dhcpv6c=yes
|
|
||||||
else
|
|
||||||
boot_address_family=inet
|
boot_address_family=inet
|
||||||
ipv6init=no
|
ipv6init=no
|
||||||
dhcpv6c=no
|
dhcpv6c=no
|
||||||
|
else
|
||||||
|
boot_address_family=inet6
|
||||||
|
ipv6init=yes
|
||||||
|
dhcpv6c=yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Persist the boot device to the platform configuration. This will get
|
# Persist the boot device to the platform configuration. This will get
|
||||||
|
|
Loading…
Reference in New Issue