|
...
|
...
|
@@ -1222,6 +1222,12 @@ if is_service_enabled quantum; then
|
|
1222
|
1222
|
# Example: LB_PHYSICAL_INTERFACE=eth1
|
|
1223
|
1223
|
LB_PHYSICAL_INTERFACE=${LB_PHYSICAL_INTERFACE:-}
|
|
1224
|
1224
|
|
|
|
1225
|
+ # With the openvswitch plugin, set to True in localrc to enable
|
|
|
1226
|
+ # provider GRE tunnels when ENABLE_TENANT_TUNNELS is False.
|
|
|
1227
|
+ #
|
|
|
1228
|
+ # Example: OVS_ENABLE_TUNNELING=True
|
|
|
1229
|
+ OVS_ENABLE_TUNNELING=${OVS_ENABLE_TUNNELING:-$ENABLE_TENANT_TUNNELS}
|
|
|
1230
|
+
|
|
1225
|
1231
|
# Put config files in ``/etc/quantum`` for everyone to find
|
|
1226
|
1232
|
if [[ ! -d /etc/quantum ]]; then
|
|
1227
|
1233
|
sudo mkdir -p /etc/quantum
|
|
...
|
...
|
@@ -1298,6 +1304,11 @@ if is_service_enabled q-svc; then
|
|
1298
|
1298
|
if [[ "$OVS_VLAN_RANGES" != "" ]]; then
|
|
1299
|
1299
|
iniset /$Q_PLUGIN_CONF_FILE OVS network_vlan_ranges $OVS_VLAN_RANGES
|
|
1300
|
1300
|
fi
|
|
|
1301
|
+
|
|
|
1302
|
+ # Enable tunnel networks if selected
|
|
|
1303
|
+ if [[ $OVS_ENABLE_TUNNELING = "True" ]]; then
|
|
|
1304
|
+ iniset /$Q_PLUGIN_CONF_FILE OVS enable_tunneling True
|
|
|
1305
|
+ fi
|
|
1301
|
1306
|
elif [[ "$Q_PLUGIN" = "linuxbridge" ]]; then
|
|
1302
|
1307
|
if [[ "$ENABLE_TENANT_VLANS" = "True" ]]; then
|
|
1303
|
1308
|
iniset /$Q_PLUGIN_CONF_FILE VLANS tenant_network_type vlan
|
|
...
|
...
|
@@ -1328,7 +1339,7 @@ if is_service_enabled q-agt; then
|
|
1328
|
1328
|
quantum_setup_ovs_bridge $OVS_BRIDGE
|
|
1329
|
1329
|
|
|
1330
|
1330
|
# Setup agent for tunneling
|
|
1331
|
|
- if [[ "$ENABLE_TENANT_TUNNELS" = "True" ]]; then
|
|
|
1331
|
+ if [[ "$OVS_ENABLE_TUNNELING" = "True" ]]; then
|
|
1332
|
1332
|
# Verify tunnels are supported
|
|
1333
|
1333
|
# REVISIT - also check kernel module support for GRE and patch ports
|
|
1334
|
1334
|
OVS_VERSION=`ovs-vsctl --version | head -n 1 | awk '{print $4;}'`
|
|
...
|
...
|
@@ -1337,6 +1348,7 @@ if is_service_enabled q-agt; then
|
|
1337
|
1337
|
echo "OVS 1.4+ is required for tunneling between multiple hosts."
|
|
1338
|
1338
|
exit 1
|
|
1339
|
1339
|
fi
|
|
|
1340
|
+ iniset /$Q_PLUGIN_CONF_FILE OVS enable_tunneling True
|
|
1340
|
1341
|
iniset /$Q_PLUGIN_CONF_FILE OVS local_ip $HOST_IP
|
|
1341
|
1342
|
fi
|
|
1342
|
1343
|
|