From c295bca61fbef22d4816b2db8cec40e924c709c4 Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 4 Aug 2015 09:28:19 +0800 Subject: [PATCH] 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 --- lib/neutron_plugins/linuxbridge_agent | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/neutron_plugins/linuxbridge_agent b/lib/neutron_plugins/linuxbridge_agent index fefc1c33a8..bd4438db04 100755 --- a/lib/neutron_plugins/linuxbridge_agent +++ b/lib/neutron_plugins/linuxbridge_agent @@ -69,6 +69,18 @@ function neutron_plugin_configure_plugin_agent { fi AGENT_BINARY="$NEUTRON_BIN_DIR/neutron-linuxbridge-agent" iniset /$Q_PLUGIN_CONF_FILE agent tunnel_types $Q_TUNNEL_TYPES + + # Configure vxlan tunneling + if [[ "$ENABLE_TENANT_TUNNELS" == "True" ]]; then + if [[ "$Q_ML2_TENANT_NETWORK_TYPE" == "vxlan" ]]; then + iniset /$Q_PLUGIN_CONF_FILE vxlan enable_vxlan "True" + iniset /$Q_PLUGIN_CONF_FILE vxlan local_ip $TUNNEL_ENDPOINT_IP + else + iniset /$Q_PLUGIN_CONF_FILE vxlan enable_vxlan "False" + fi + else + iniset /$Q_PLUGIN_CONF_FILE vxlan enable_vxlan "False" + fi } function neutron_plugin_setup_interface_driver {