Remove the code against flushing public bridge
As unstack.sh does destroy all bridges, we don't have to refresh bridge interface any more, as what is done in commit c2dc95add6e46829f1705041c1d9dddab9b360d3. So in this commit we will continue to remove the related statements in lib/neutron-legacy. These statements will also cause undefined PUBLIC_BRIDGE error. Change-Id: I4c7617f6a245ea4e2e08f518d873b1b8adc2b807 Closes-Bug: #1454475
This commit is contained in:
parent
c9e842871b
commit
75c4473712
@ -1294,17 +1294,6 @@ function _neutron_configure_router_v6 {
|
|||||||
IPV6_ROUTER_GW_IP=`neutron port-list -c fixed_ips | grep $ipv6_pub_subnet_id | awk -F '"' -v subnet_id=$ipv6_pub_subnet_id '$4 == subnet_id { print $8; }'`
|
IPV6_ROUTER_GW_IP=`neutron port-list -c fixed_ips | grep $ipv6_pub_subnet_id | awk -F '"' -v subnet_id=$ipv6_pub_subnet_id '$4 == subnet_id { print $8; }'`
|
||||||
die_if_not_set $LINENO IPV6_ROUTER_GW_IP "Failure retrieving IPV6_ROUTER_GW_IP"
|
die_if_not_set $LINENO IPV6_ROUTER_GW_IP "Failure retrieving IPV6_ROUTER_GW_IP"
|
||||||
|
|
||||||
# The ovs_base_configure_l3_agent function flushes the public
|
|
||||||
# bridge's ip addresses, so turn IPv6 support in the host off
|
|
||||||
# and then on to recover the public bridge's link local address
|
|
||||||
sudo sysctl -w net.ipv6.conf.${PUBLIC_BRIDGE}.disable_ipv6=1
|
|
||||||
sudo sysctl -w net.ipv6.conf.${PUBLIC_BRIDGE}.disable_ipv6=0
|
|
||||||
if ! ip -6 addr show dev $PUBLIC_BRIDGE | grep 'scope global'; then
|
|
||||||
# Create an IPv6 ULA address for PUBLIC_BRIDGE if one is not present
|
|
||||||
IPV6_BRIDGE_ULA=`uuidgen | sed s/-//g | cut -c 23- | sed -e "s/\(..\)\(....\)\(....\)/\1:\2:\3/"`
|
|
||||||
sudo ip -6 addr add fd$IPV6_BRIDGE_ULA::1 dev $PUBLIC_BRIDGE
|
|
||||||
fi
|
|
||||||
|
|
||||||
if is_neutron_ovs_base_plugin && [[ "$Q_USE_NAMESPACE" = "True" ]]; then
|
if is_neutron_ovs_base_plugin && [[ "$Q_USE_NAMESPACE" = "True" ]]; then
|
||||||
local ext_gw_interface=$(_neutron_get_ext_gw_interface)
|
local ext_gw_interface=$(_neutron_get_ext_gw_interface)
|
||||||
local ipv6_cidr_len=${IPV6_PUBLIC_RANGE#*/}
|
local ipv6_cidr_len=${IPV6_PUBLIC_RANGE#*/}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user