Uses local variable with ipv4 gateway config
We were using an env var with the IPv4 gateway config that is not always present. This was causing devstack to fail in developer environment. Use the local variable instead. Closes-Bug: #1910760 Change-Id: Iede8a9e59b96d0f21c117ab1464a0a9e3477c24b
This commit is contained in:
parent
249904842c
commit
d7d83a3f3b
@ -1088,7 +1088,7 @@ function setup_ipv6 {
|
||||
# Configure interfaces due to NEUTRON_CREATE_INITIAL_NETWORKS=False
|
||||
local ipv4_cidr_len=${FLOATING_RANGE#*/}
|
||||
sudo ip -6 addr add "$public_gateway_ipv6"/$SUBNETPOOL_SIZE_V6 dev $PUBLIC_BRIDGE
|
||||
sudo ip addr add $PUBLIC_NETWORK_GATEWAY/"$ipv4_cidr_len" dev $PUBLIC_BRIDGE
|
||||
sudo ip addr add "$public_gateway_ipv4"/"$ipv4_cidr_len" dev $PUBLIC_BRIDGE
|
||||
|
||||
# Enabling interface is needed due to NEUTRON_CREATE_INITIAL_NETWORKS=False
|
||||
sudo ip link set $PUBLIC_BRIDGE up
|
||||
|
Loading…
x
Reference in New Issue
Block a user