From 0f97841dfa0187a34f3345ba5f6e58d398e82832 Mon Sep 17 00:00:00 2001 From: yatin Date: Thu, 5 Jan 2017 12:32:57 +0530 Subject: [PATCH] Remove duplicate entry for flat_networks Currently if PHYSICAL_NETWORK and PUBLIC_PHYSICAL_NETWORK are same then duplicate entry is created in ml2_conf.ini like below: flat_networks = public,public, With this patch, if PHYSICAL_NETWORK and PUBLIC_PHYSICAL_NETWORK are same then add only PHYSICAL_NETWORK to flat_networks in ml2_conf.ini Change-Id: Iae4d1ee3882f6d96b4e4abd52ecc673a620563b5 Closes-Bug: #1654148 --- lib/neutron_plugins/ml2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/neutron_plugins/ml2 b/lib/neutron_plugins/ml2 index e429714f06..d798929d36 100644 --- a/lib/neutron_plugins/ml2 +++ b/lib/neutron_plugins/ml2 @@ -105,7 +105,7 @@ function neutron_plugin_configure_service { if [[ -n "$PHYSICAL_NETWORK" ]]; then Q_ML2_PLUGIN_FLAT_TYPE_OPTIONS+="${PHYSICAL_NETWORK}," fi - if [[ -n "$PUBLIC_PHYSICAL_NETWORK" ]]; then + if [[ -n "$PUBLIC_PHYSICAL_NETWORK" ]] && [[ "${PHYSICAL_NETWORK}" != "$PUBLIC_PHYSICAL_NETWORK" ]]; then Q_ML2_PLUGIN_FLAT_TYPE_OPTIONS+="${PUBLIC_PHYSICAL_NETWORK}," fi fi