Browse code

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

Yalei Wang authored on 2015/05/13 13:43:56
Showing 1 changed files
... ...
@@ -1294,17 +1294,6 @@ function _neutron_configure_router_v6 {
1294 1294
         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; }'`
1295 1295
         die_if_not_set $LINENO IPV6_ROUTER_GW_IP "Failure retrieving IPV6_ROUTER_GW_IP"
1296 1296
 
1297
-        # The ovs_base_configure_l3_agent function flushes the public
1298
-        # bridge's ip addresses, so turn IPv6 support in the host off
1299
-        # and then on to recover the public bridge's link local address
1300
-        sudo sysctl -w net.ipv6.conf.${PUBLIC_BRIDGE}.disable_ipv6=1
1301
-        sudo sysctl -w net.ipv6.conf.${PUBLIC_BRIDGE}.disable_ipv6=0
1302
-        if ! ip -6 addr show dev $PUBLIC_BRIDGE | grep 'scope global'; then
1303
-            # Create an IPv6 ULA address for PUBLIC_BRIDGE if one is not present
1304
-            IPV6_BRIDGE_ULA=`uuidgen | sed s/-//g | cut -c 23- | sed -e "s/\(..\)\(....\)\(....\)/\1:\2:\3/"`
1305
-            sudo ip -6 addr add fd$IPV6_BRIDGE_ULA::1 dev $PUBLIC_BRIDGE
1306
-        fi
1307
-
1308 1297
         if is_neutron_ovs_base_plugin && [[ "$Q_USE_NAMESPACE" = "True" ]]; then
1309 1298
             local ext_gw_interface=$(_neutron_get_ext_gw_interface)
1310 1299
             local ipv6_cidr_len=${IPV6_PUBLIC_RANGE#*/}