Merge "devstack: Adapt to lib/neutron"

This commit is contained in:
Jenkins 2017-09-08 05:05:27 +00:00 committed by Gerrit Code Review
commit 5f27334b87
1 changed files with 2 additions and 5 deletions

View File

@ -23,12 +23,9 @@ function install_taas {
} }
function configure_taas_plugin { function configure_taas_plugin {
if [ ! -d $NEUTRON_CONF_DIR ]; then
_create_neutron_conf_dir
fi
cp $TAAS_PLUGIN_PATH/etc/taas_plugin.ini $TAAS_PLUGIN_CONF_FILE cp $TAAS_PLUGIN_PATH/etc/taas_plugin.ini $TAAS_PLUGIN_CONF_FILE
neutron_server_config_add $TAAS_PLUGIN_CONF_FILE neutron_server_config_add $TAAS_PLUGIN_CONF_FILE
_neutron_service_plugin_class_add taas neutron_service_plugin_class_add taas
} }
if is_service_enabled taas; then if is_service_enabled taas; then
@ -37,8 +34,8 @@ if is_service_enabled taas; then
: :
elif [[ "$2" == "install" ]]; then elif [[ "$2" == "install" ]]; then
install_taas install_taas
configure_taas_plugin
elif [[ "$2" == "post-config" ]]; then elif [[ "$2" == "post-config" ]]; then
configure_taas_plugin
neutron-db-manage --subproject tap-as-a-service upgrade head neutron-db-manage --subproject tap-as-a-service upgrade head
echo "Configuring taas" echo "Configuring taas"
if [ "$TAAS_SERVICE_DRIVER" ]; then if [ "$TAAS_SERVICE_DRIVER" ]; then