This reverts commit 130a11f8aaf08ea529b6ce60dd9052451cb7bb5c.
Linux bridge devstack logic needs some changes first.
Change-Id: I5885062ad128518c22f743db016e1a6db64f3313
Closes-Bug: #1605423
| ... | ... |
@@ -203,7 +203,7 @@ TENANT_VLAN_RANGE=${TENANT_VLAN_RANGE:-}
|
| 203 | 203 |
# agent, as described below. |
| 204 | 204 |
# |
| 205 | 205 |
# Example: ``PHYSICAL_NETWORK=default`` |
| 206 |
-PHYSICAL_NETWORK=${PHYSICAL_NETWORK:-public}
|
|
| 206 |
+PHYSICAL_NETWORK=${PHYSICAL_NETWORK:-}
|
|
| 207 | 207 |
|
| 208 | 208 |
# With the openvswitch agent, if using VLANs for tenant networks, |
| 209 | 209 |
# or if using flat or VLAN provider networks, set in ``localrc`` to |
| ... | ... |
@@ -213,7 +213,7 @@ PHYSICAL_NETWORK=${PHYSICAL_NETWORK:-public}
|
| 213 | 213 |
# port for external connectivity. |
| 214 | 214 |
# |
| 215 | 215 |
# Example: ``OVS_PHYSICAL_BRIDGE=br-eth1`` |
| 216 |
-OVS_PHYSICAL_BRIDGE=${OVS_PHYSICAL_BRIDGE:-br-ex}
|
|
| 216 |
+OVS_PHYSICAL_BRIDGE=${OVS_PHYSICAL_BRIDGE:-}
|
|
| 217 | 217 |
|
| 218 | 218 |
# With the linuxbridge agent, if using VLANs for tenant networks, |
| 219 | 219 |
# or if using flat or VLAN provider networks, set in ``localrc`` to |
| ... | ... |
@@ -17,11 +17,6 @@ IPV6_PROVIDER_NETWORK_GATEWAY=${IPV6_PROVIDER_NETWORK_GATEWAY:-}
|
| 17 | 17 |
PUBLIC_BRIDGE=${PUBLIC_BRIDGE:-br-ex}
|
| 18 | 18 |
PUBLIC_BRIDGE_MTU=${PUBLIC_BRIDGE_MTU:-1500}
|
| 19 | 19 |
|
| 20 |
-# If Q_ASSIGN_GATEWAY_TO_PUBLIC_BRIDGE=True, assign the gateway IP of the public |
|
| 21 |
-# subnet to the public bridge interface even if Q_USE_PROVIDERNET_FOR_PUBLIC is |
|
| 22 |
-# used. |
|
| 23 |
-Q_ASSIGN_GATEWAY_TO_PUBLIC_BRIDGE=${Q_ASSIGN_GATEWAY_TO_PUBLIC_BRIDGE:-True}
|
|
| 24 |
- |
|
| 25 | 20 |
# If Q_USE_PUBLIC_VETH=True, create and use a veth pair instead of |
| 26 | 21 |
# PUBLIC_BRIDGE. This is intended to be used with |
| 27 | 22 |
# Q_USE_PROVIDERNET_FOR_PUBLIC=True. |
| ... | ... |
@@ -56,7 +51,7 @@ Q_L3_ROUTER_PER_TENANT=${Q_L3_ROUTER_PER_TENANT:-True}
|
| 56 | 56 |
# Q_USE_PROVIDERNET_FOR_PUBLIC=True |
| 57 | 57 |
# PUBLIC_PHYSICAL_NETWORK=public |
| 58 | 58 |
# OVS_BRIDGE_MAPPINGS=public:br-ex |
| 59 |
-Q_USE_PROVIDERNET_FOR_PUBLIC=${Q_USE_PROVIDERNET_FOR_PUBLIC:-True}
|
|
| 59 |
+Q_USE_PROVIDERNET_FOR_PUBLIC=${Q_USE_PROVIDERNET_FOR_PUBLIC:-False}
|
|
| 60 | 60 |
PUBLIC_PHYSICAL_NETWORK=${PUBLIC_PHYSICAL_NETWORK:-public}
|
| 61 | 61 |
|
| 62 | 62 |
# Generate 40-bit IPv6 Global ID to comply with RFC 4193 |
| ... | ... |
@@ -310,7 +305,7 @@ function _neutron_configure_router_v4 {
|
| 310 | 310 |
local cidr_len=${FLOATING_RANGE#*/}
|
| 311 | 311 |
local testcmd="ip -o link | grep -q $ext_gw_interface" |
| 312 | 312 |
test_with_retry "$testcmd" "$ext_gw_interface creation failed" |
| 313 |
- if [[ $(ip addr show dev $ext_gw_interface | grep -c $ext_gw_ip) == 0 && ( $Q_USE_PROVIDERNET_FOR_PUBLIC == "False" || $Q_USE_PUBLIC_VETH == "True" || $Q_ASSIGN_GATEWAY_TO_PUBLIC_BRIDGE == "True" ) ]]; then |
|
| 313 |
+ if [[ $(ip addr show dev $ext_gw_interface | grep -c $ext_gw_ip) == 0 && ( $Q_USE_PROVIDERNET_FOR_PUBLIC == "False" || $Q_USE_PUBLIC_VETH == "True" ) ]]; then |
|
| 314 | 314 |
sudo ip addr add $ext_gw_ip/$cidr_len dev $ext_gw_interface |
| 315 | 315 |
sudo ip link set $ext_gw_interface up |
| 316 | 316 |
fi |