Browse code

Merge "vxlan default ml2 tenant network type"

Jenkins authored on 2014/08/02 11:09:52
Showing 2 changed files
... ...
@@ -166,10 +166,10 @@ fi
166 166
 # remote connectivity), and no physical resources will be
167 167
 # available for the allocation of provider networks.
168 168
 
169
-# To use GRE tunnels for tenant networks, set to True in
170
-# ``localrc``. GRE tunnels are only supported by the openvswitch
171
-# plugin, and currently only on Ubuntu.
172
-ENABLE_TENANT_TUNNELS=${ENABLE_TENANT_TUNNELS:-False}
169
+# To disable tunnels (GRE or VXLAN) for tenant networks,
170
+# set to False in ``local.conf``.
171
+# GRE tunnels are only supported by the openvswitch.
172
+ENABLE_TENANT_TUNNELS=${ENABLE_TENANT_TUNNELS:-True}
173 173
 
174 174
 # If using GRE tunnels for tenant networks, specify the range of
175 175
 # tunnel IDs from which tenant networks are allocated. Can be
... ...
@@ -7,9 +7,9 @@ set +o xtrace
7 7
 
8 8
 # Enable this to simply and quickly enable tunneling with ML2.
9 9
 # Select either 'gre', 'vxlan', or '(gre vxlan)'
10
-Q_ML2_TENANT_NETWORK_TYPE=${Q_ML2_TENANT_NETWORK_TYPE:-}
10
+Q_ML2_TENANT_NETWORK_TYPE=${Q_ML2_TENANT_NETWORK_TYPE:-"vxlan"}
11 11
 # This has to be set here since the agent will set this in the config file
12
-if [[ "$Q_ML2_TENANT_NETWORK_TYPE" != "" ]]; then
12
+if [[ "$Q_ML2_TENANT_NETWORK_TYPE" != "local" ]]; then
13 13
     Q_AGENT_EXTRA_AGENT_OPTS+=(tunnel_types=$Q_ML2_TENANT_NETWORK_TYPE)
14 14
 elif [[ "$ENABLE_TENANT_TUNNELS" == "True" ]]; then
15 15
     Q_AGENT_EXTRA_AGENT_OPTS+=(tunnel_types=gre)
... ...
@@ -57,7 +57,7 @@ function neutron_plugin_configure_common {
57 57
 }
58 58
 
59 59
 function neutron_plugin_configure_service {
60
-    if [[ "$Q_ML2_TENANT_NETWORK_TYPE" != "" ]]; then
60
+    if [[ "$Q_ML2_TENANT_NETWORK_TYPE" != "local" ]]; then
61 61
         Q_SRV_EXTRA_OPTS+=(tenant_network_types=$Q_ML2_TENANT_NETWORK_TYPE)
62 62
     elif [[ "$ENABLE_TENANT_TUNNELS" == "True" ]]; then
63 63
         # This assumes you want a simple configuration, and will overwrite