Use vmware_nsx aliases for neutron core plugins

With commit baef191d1f, we have
defined aliases for different version of vmware_nsx plugins. Now,
if we don't provide alias during devstack setup, neutron failed
to come up with the following error
"NoMatches: No 'neutron.core_plugins' driver found, looking for
'vmware_nsx.plugin.NsxV3Plugin'"

This patch changes Q_PLUGIN_CLASS to vmware_nsx aliases. So that
the core_plugins in neutron conf will use that to load.

Change-Id: Ibaa1caf4dc7ad14d5f7e3e43ca5173e6474f9451
This commit is contained in:
Tong Liu 2017-05-15 15:32:16 +00:00
parent c449abdc05
commit 418c773e14
4 changed files with 4 additions and 4 deletions

View File

@ -69,7 +69,7 @@ function neutron_plugin_configure_common {
mkdir -p /$Q_PLUGIN_CONF_PATH
cp $DEST/$Q_PLUGIN_SRC_CONF_PATH/nsx.ini.sample /$Q_PLUGIN_CONF_PATH/$Q_PLUGIN_CONF_FILENAME
Q_DB_NAME="neutron_nsx"
Q_PLUGIN_CLASS="vmware_nsx.plugin.NsxDvsPlugin"
Q_PLUGIN_CLASS="vmware_dvs"
}
function neutron_plugin_configure_debug_command {

View File

@ -71,7 +71,7 @@ function neutron_plugin_configure_common {
(cd $DEST/$VMWARE_NSX_DIR && exec ./tools/generate_config_file_samples.sh)
mkdir -p /$Q_PLUGIN_CONF_PATH
cp $DEST/$Q_PLUGIN_SRC_CONF_PATH/nsx.ini.sample /$Q_PLUGIN_CONF_PATH/$Q_PLUGIN_CONF_FILENAME
Q_PLUGIN_CLASS="neutron.plugins.vmware.plugin.NsxPlugin"
Q_PLUGIN_CLASS="vmware_nsx"
}
function neutron_plugin_configure_debug_command {

View File

@ -59,7 +59,7 @@ function neutron_plugin_configure_common {
cp -v $DEST/$Q_PLUGIN_SRC_CONF_PATH/policy/routers.json $NEUTRON_CONF_DIR/policy.d
cp -v $DEST/$Q_PLUGIN_SRC_CONF_PATH/policy/network-gateways.json $NEUTRON_CONF_DIR/policy.d
Q_DB_NAME="neutron_nsx"
Q_PLUGIN_CLASS="vmware_nsx.plugin.NsxVPlugin"
Q_PLUGIN_CLASS="vmware_nsxv"
}
function neutron_plugin_configure_debug_command {

View File

@ -124,7 +124,7 @@ function neutron_plugin_configure_common {
sudo install -d -o $STACK_USER $NEUTRON_CONF_DIR/policy.d
cp -v $DEST/$Q_PLUGIN_SRC_CONF_PATH/policy/routers.json $NEUTRON_CONF_DIR/policy.d
cp -v $DEST/$Q_PLUGIN_SRC_CONF_PATH/policy/network-gateways.json $NEUTRON_CONF_DIR/policy.d
Q_PLUGIN_CLASS="vmware_nsx.plugin.NsxV3Plugin"
Q_PLUGIN_CLASS="vmware_nsxv3"
}
function neutron_plugin_configure_debug_command {