The current code sets tunnel types for the neutron agent
even when the network type is 'vlan'. This results in the
agent not starting because 'vlan' is not a valid tunnel type.
This patch changes it so tunnel_types is not populated when
vlans are used.
This bug just now surfaced because of commit
8feaf6c9516094df58df84479d73779e87a79264 requiring Q_ML2_TENANT_NETWORK_TYPE
to be set to avoid being set to the 'local' type.
Change-Id: If2bc57b36dad2bfb34df573581acce176604812e
| ... | ... |
@@ -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) |