Browse code

Fix tunneling support for linuxbridge-agent

When I deploy linuxbridge-agent and enable tunneling,
the configuration of neutron isn't right. It lacks
the whole section [vxlan] to be properly configured.

Change-Id: Ib3bfe0f3445f466f4dbb36f7f0cb0d940114e7f6
Closes-Bug: #1481126
Related-Bug: #1524913
(cherry picked from commit c295bca61fbef22d4816b2db8cec40e924c709c4)

Nick authored on 2015/08/04 10:28:19
Showing 1 changed files
... ...
@@ -69,6 +69,18 @@ function neutron_plugin_configure_plugin_agent {
69 69
     fi
70 70
     AGENT_BINARY="$NEUTRON_BIN_DIR/neutron-linuxbridge-agent"
71 71
     iniset /$Q_PLUGIN_CONF_FILE agent tunnel_types $Q_TUNNEL_TYPES
72
+
73
+    # Configure vxlan tunneling
74
+    if [[ "$ENABLE_TENANT_TUNNELS" == "True" ]]; then
75
+        if [[ "$Q_ML2_TENANT_NETWORK_TYPE" == "vxlan" ]]; then
76
+            iniset /$Q_PLUGIN_CONF_FILE vxlan enable_vxlan "True"
77
+            iniset /$Q_PLUGIN_CONF_FILE vxlan local_ip $TUNNEL_ENDPOINT_IP
78
+        else
79
+            iniset /$Q_PLUGIN_CONF_FILE vxlan enable_vxlan "False"
80
+        fi
81
+    else
82
+        iniset /$Q_PLUGIN_CONF_FILE vxlan enable_vxlan "False"
83
+    fi
72 84
 }
73 85
 
74 86
 function neutron_plugin_setup_interface_driver {