Now that the Neutron database is healed we no longer need a
plugin-specific name for it.
Related Blueprint: db-migration-refactor
Change-Id: If25e77444f115817e5570bb447bde5b9c8d6e686
| ... | ... |
@@ -85,6 +85,8 @@ NEUTRON_CONF_DIR=/etc/neutron |
| 85 | 85 |
NEUTRON_CONF=$NEUTRON_CONF_DIR/neutron.conf |
| 86 | 86 |
export NEUTRON_TEST_CONFIG_FILE=${NEUTRON_TEST_CONFIG_FILE:-"$NEUTRON_CONF_DIR/debug.ini"}
|
| 87 | 87 |
|
| 88 |
+# Default name for Neutron database |
|
| 89 |
+Q_DB_NAME=${Q_DB_NAME:-neutron}
|
|
| 88 | 90 |
# Default Neutron Plugin |
| 89 | 91 |
Q_PLUGIN=${Q_PLUGIN:-ml2}
|
| 90 | 92 |
# Default Neutron Port |
| ... | ... |
@@ -25,7 +25,7 @@ functions |
| 25 | 25 |
install_package bridge-utils |
| 26 | 26 |
* ``neutron_plugin_configure_common`` : |
| 27 | 27 |
set plugin-specific variables, ``Q_PLUGIN_CONF_PATH``, ``Q_PLUGIN_CONF_FILENAME``, |
| 28 |
- ``Q_DB_NAME``, ``Q_PLUGIN_CLASS`` |
|
| 28 |
+ ``Q_PLUGIN_CLASS`` |
|
| 29 | 29 |
* ``neutron_plugin_configure_debug_command`` |
| 30 | 30 |
* ``neutron_plugin_configure_dhcp_agent`` |
| 31 | 31 |
* ``neutron_plugin_configure_l3_agent`` |
| ... | ... |
@@ -19,7 +19,6 @@ function neutron_plugin_install_agent_packages {
|
| 19 | 19 |
function neutron_plugin_configure_common {
|
| 20 | 20 |
Q_PLUGIN_CONF_PATH=etc/neutron/plugins/bigswitch |
| 21 | 21 |
Q_PLUGIN_CONF_FILENAME=restproxy.ini |
| 22 |
- Q_DB_NAME="restproxy_neutron" |
|
| 23 | 22 |
Q_PLUGIN_CLASS="neutron.plugins.bigswitch.plugin.NeutronRestProxyV2" |
| 24 | 23 |
BS_FL_CONTROLLERS_PORT=${BS_FL_CONTROLLERS_PORT:-localhost:80}
|
| 25 | 24 |
BS_FL_CONTROLLER_TIMEOUT=${BS_FL_CONTROLLER_TIMEOUT:-10}
|
| ... | ... |
@@ -20,7 +20,6 @@ function neutron_plugin_install_agent_packages {
|
| 20 | 20 |
function neutron_plugin_configure_common {
|
| 21 | 21 |
Q_PLUGIN_CONF_PATH=etc/neutron/plugins/brocade |
| 22 | 22 |
Q_PLUGIN_CONF_FILENAME=brocade.ini |
| 23 |
- Q_DB_NAME="brcd_neutron" |
|
| 24 | 23 |
Q_PLUGIN_CLASS="neutron.plugins.brocade.NeutronPlugin.BrocadePluginV2" |
| 25 | 24 |
} |
| 26 | 25 |
|
| ... | ... |
@@ -197,7 +197,6 @@ function neutron_plugin_configure_common {
|
| 197 | 197 |
Q_PLUGIN_CONF_FILENAME=cisco_plugins.ini |
| 198 | 198 |
fi |
| 199 | 199 |
Q_PLUGIN_CLASS="neutron.plugins.cisco.network_plugin.PluginV2" |
| 200 |
- Q_DB_NAME=cisco_neutron |
|
| 201 | 200 |
} |
| 202 | 201 |
|
| 203 | 202 |
function neutron_plugin_configure_debug_command {
|
| ... | ... |
@@ -18,7 +18,6 @@ save_function neutron_plugin_configure_service _neutron_plugin_configure_service |
| 18 | 18 |
function neutron_plugin_configure_common {
|
| 19 | 19 |
Q_PLUGIN_CONF_PATH=etc/neutron/plugins/embrane |
| 20 | 20 |
Q_PLUGIN_CONF_FILENAME=heleos_conf.ini |
| 21 |
- Q_DB_NAME="ovs_neutron" |
|
| 22 | 21 |
Q_PLUGIN_CLASS="neutron.plugins.embrane.plugins.embrane_ovs_plugin.EmbraneOvsPlugin" |
| 23 | 22 |
} |
| 24 | 23 |
|
| ... | ... |
@@ -60,7 +60,6 @@ function is_neutron_ovs_base_plugin {
|
| 60 | 60 |
function neutron_plugin_configure_common {
|
| 61 | 61 |
Q_PLUGIN_CONF_PATH=etc/neutron/plugins/ibm |
| 62 | 62 |
Q_PLUGIN_CONF_FILENAME=sdnve_neutron_plugin.ini |
| 63 |
- Q_DB_NAME="sdnve_neutron" |
|
| 64 | 63 |
Q_PLUGIN_CLASS="neutron.plugins.ibm.sdnve_neutron_plugin.SdnvePluginV2" |
| 65 | 64 |
} |
| 66 | 65 |
|
| ... | ... |
@@ -10,7 +10,6 @@ source $TOP_DIR/lib/neutron_plugins/linuxbridge_agent |
| 10 | 10 |
function neutron_plugin_configure_common {
|
| 11 | 11 |
Q_PLUGIN_CONF_PATH=etc/neutron/plugins/linuxbridge |
| 12 | 12 |
Q_PLUGIN_CONF_FILENAME=linuxbridge_conf.ini |
| 13 |
- Q_DB_NAME="neutron_linux_bridge" |
|
| 14 | 13 |
Q_PLUGIN_CLASS="neutron.plugins.linuxbridge.lb_neutron_plugin.LinuxBridgePluginV2" |
| 15 | 14 |
} |
| 16 | 15 |
|
| ... | ... |
@@ -26,7 +26,6 @@ function neutron_plugin_install_agent_packages {
|
| 26 | 26 |
function neutron_plugin_configure_common {
|
| 27 | 27 |
Q_PLUGIN_CONF_PATH=etc/neutron/plugins/midonet |
| 28 | 28 |
Q_PLUGIN_CONF_FILENAME=midonet.ini |
| 29 |
- Q_DB_NAME="neutron_midonet" |
|
| 30 | 29 |
Q_PLUGIN_CLASS="neutron.plugins.midonet.plugin.MidonetPluginV2" |
| 31 | 30 |
} |
| 32 | 31 |
|
| ... | ... |
@@ -50,7 +50,6 @@ function populate_ml2_config {
|
| 50 | 50 |
function neutron_plugin_configure_common {
|
| 51 | 51 |
Q_PLUGIN_CONF_PATH=etc/neutron/plugins/ml2 |
| 52 | 52 |
Q_PLUGIN_CONF_FILENAME=ml2_conf.ini |
| 53 |
- Q_DB_NAME="neutron_ml2" |
|
| 54 | 53 |
Q_PLUGIN_CLASS="neutron.plugins.ml2.plugin.Ml2Plugin" |
| 55 | 54 |
# The ML2 plugin delegates L3 routing/NAT functionality to |
| 56 | 55 |
# the L3 service plugin which must therefore be specified. |
| ... | ... |
@@ -39,7 +39,6 @@ function neutron_plugin_install_agent_packages {
|
| 39 | 39 |
function neutron_plugin_configure_common {
|
| 40 | 40 |
Q_PLUGIN_CONF_PATH=etc/neutron/plugins/nec |
| 41 | 41 |
Q_PLUGIN_CONF_FILENAME=nec.ini |
| 42 |
- Q_DB_NAME="neutron_nec" |
|
| 43 | 42 |
Q_PLUGIN_CLASS="neutron.plugins.nec.nec_plugin.NECPluginV2" |
| 44 | 43 |
} |
| 45 | 44 |
|
| ... | ... |
@@ -20,7 +20,6 @@ function neutron_plugin_install_agent_packages {
|
| 20 | 20 |
function neutron_plugin_configure_common {
|
| 21 | 21 |
Q_PLUGIN_CONF_PATH=etc/neutron/plugins/nuage |
| 22 | 22 |
Q_PLUGIN_CONF_FILENAME=nuage_plugin.ini |
| 23 |
- Q_DB_NAME="nuage_neutron" |
|
| 24 | 23 |
Q_PLUGIN_CLASS="neutron.plugins.nuage.plugin.NuagePlugin" |
| 25 | 24 |
Q_PLUGIN_EXTENSIONS_PATH=neutron/plugins/nuage/extensions |
| 26 | 25 |
#Nuage specific Neutron defaults. Actual value must be set and sourced |
| ... | ... |
@@ -19,7 +19,6 @@ function neutron_plugin_configure_common {
|
| 19 | 19 |
Q_PLUGIN_CONF_PATH=etc/neutron/plugins/oneconvergence |
| 20 | 20 |
Q_PLUGIN_CONF_FILENAME=nvsdplugin.ini |
| 21 | 21 |
Q_PLUGIN_CLASS="neutron.plugins.oneconvergence.plugin.OneConvergencePluginV2" |
| 22 |
- Q_DB_NAME='oc_nvsd_neutron' |
|
| 23 | 22 |
} |
| 24 | 23 |
|
| 25 | 24 |
# Configure plugin specific information |
| ... | ... |
@@ -10,7 +10,6 @@ source $TOP_DIR/lib/neutron_plugins/openvswitch_agent |
| 10 | 10 |
function neutron_plugin_configure_common {
|
| 11 | 11 |
Q_PLUGIN_CONF_PATH=etc/neutron/plugins/openvswitch |
| 12 | 12 |
Q_PLUGIN_CONF_FILENAME=ovs_neutron_plugin.ini |
| 13 |
- Q_DB_NAME="ovs_neutron" |
|
| 14 | 13 |
Q_PLUGIN_CLASS="neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2" |
| 15 | 14 |
} |
| 16 | 15 |
|
| ... | ... |
@@ -17,7 +17,6 @@ function neutron_plugin_setup_interface_driver {
|
| 17 | 17 |
function neutron_plugin_configure_common {
|
| 18 | 18 |
Q_PLUGIN_CONF_PATH=etc/neutron/plugins/plumgrid |
| 19 | 19 |
Q_PLUGIN_CONF_FILENAME=plumgrid.ini |
| 20 |
- Q_DB_NAME="plumgrid_neutron" |
|
| 21 | 20 |
Q_PLUGIN_CLASS="neutron.plugins.plumgrid.plumgrid_plugin.plumgrid_plugin.NeutronPluginPLUMgridV2" |
| 22 | 21 |
PLUMGRID_DIRECTOR_IP=${PLUMGRID_DIRECTOR_IP:-localhost}
|
| 23 | 22 |
PLUMGRID_DIRECTOR_PORT=${PLUMGRID_DIRECTOR_PORT:-7766}
|
| ... | ... |
@@ -25,7 +25,6 @@ function neutron_plugin_install_agent_packages {
|
| 25 | 25 |
function neutron_plugin_configure_common {
|
| 26 | 26 |
Q_PLUGIN_CONF_PATH=etc/neutron/plugins/ryu |
| 27 | 27 |
Q_PLUGIN_CONF_FILENAME=ryu.ini |
| 28 |
- Q_DB_NAME="ovs_neutron" |
|
| 29 | 28 |
Q_PLUGIN_CLASS="neutron.plugins.ryu.ryu_neutron_plugin.RyuNeutronPluginV2" |
| 30 | 29 |
} |
| 31 | 30 |
|
| ... | ... |
@@ -40,7 +40,6 @@ function neutron_plugin_install_agent_packages {
|
| 40 | 40 |
function neutron_plugin_configure_common {
|
| 41 | 41 |
Q_PLUGIN_CONF_PATH=etc/neutron/plugins/vmware |
| 42 | 42 |
Q_PLUGIN_CONF_FILENAME=nsx.ini |
| 43 |
- Q_DB_NAME="neutron_nsx" |
|
| 44 | 43 |
Q_PLUGIN_CLASS="neutron.plugins.vmware.plugin.NsxPlugin" |
| 45 | 44 |
} |
| 46 | 45 |
|