From 952ecb6fec87e98bf7677cd4b481a20a8ffe36aa Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Fri, 13 Jan 2017 18:30:19 +0000 Subject: [PATCH] Don't set external_network_bridge by default Since the empty value is the default for the option, and when explcitly set in config file, it triggers a deprecation warning for the option, avoid setting it unless we actually need to override the new default value. Change-Id: If423114d7a52da29b97d1fb473a955d9d69a1a3e --- lib/neutron_plugins/brocade | 1 - lib/neutron_plugins/linuxbridge_agent | 1 - lib/neutron_plugins/ovs_base | 4 +--- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/neutron_plugins/brocade b/lib/neutron_plugins/brocade index 1b42e7794e..310b72e5ad 100644 --- a/lib/neutron_plugins/brocade +++ b/lib/neutron_plugins/brocade @@ -54,7 +54,6 @@ function neutron_plugin_configure_dhcp_agent { } function neutron_plugin_configure_l3_agent { - iniset $Q_L3_CONF_FILE DEFAULT external_network_bridge iniset $Q_L3_CONF_FILE DEFAULT l3_agent_manager neutron.agent.l3_agent.L3NATAgentWithStateReport } diff --git a/lib/neutron_plugins/linuxbridge_agent b/lib/neutron_plugins/linuxbridge_agent index f1216377fa..dfed49b5e4 100755 --- a/lib/neutron_plugins/linuxbridge_agent +++ b/lib/neutron_plugins/linuxbridge_agent @@ -48,7 +48,6 @@ function neutron_plugin_configure_l3_agent { local conf_file=$1 sudo brctl addbr $PUBLIC_BRIDGE set_mtu $PUBLIC_BRIDGE $PUBLIC_BRIDGE_MTU - iniset $conf_file DEFAULT external_network_bridge } function neutron_plugin_configure_plugin_agent { diff --git a/lib/neutron_plugins/ovs_base b/lib/neutron_plugins/ovs_base index 795d2bb5b2..1a97001824 100644 --- a/lib/neutron_plugins/ovs_base +++ b/lib/neutron_plugins/ovs_base @@ -87,9 +87,7 @@ function _neutron_ovs_base_configure_firewall_driver { } function _neutron_ovs_base_configure_l3_agent { - if [ "$Q_USE_PROVIDERNET_FOR_PUBLIC" = "True" ]; then - iniset $Q_L3_CONF_FILE DEFAULT external_network_bridge "" - else + if [ "$Q_USE_PROVIDERNET_FOR_PUBLIC" != "True" ]; then iniset $Q_L3_CONF_FILE DEFAULT external_network_bridge $PUBLIC_BRIDGE fi