Browse code

Merge "Don't set tunnel_types on VLAN network type"

Jenkins authored on 2014/08/12 18:32:51
Showing 1 changed files
... ...
@@ -9,7 +9,7 @@ set +o xtrace
9 9
 # Select either 'gre', 'vxlan', or '(gre vxlan)'
10 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" != "local" ]]; then
12
+if [[ "$Q_ML2_TENANT_NETWORK_TYPE" == "gre" || "$Q_ML2_TENANT_NETWORK_TYPE" == "vxlan" ]]; 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)