Merge "devstack: configure ml2 extension drivers using lib/neutron"

This commit is contained in:
Jenkins 2017-04-18 16:23:44 +00:00 committed by Gerrit Code Review
commit 2924ac1061
2 changed files with 3 additions and 13 deletions

View File

@ -1,5 +1,5 @@
function configure_dns_extension {
enable_ml2_extension_driver "dns"
neutron_ml2_extension_driver_add "dns"
}
function post_config_dns_extension {
iniset $NEUTRON_CONF DEFAULT dns_domain openstackgate.local

View File

@ -1,18 +1,8 @@
source $LIBDIR/ml2_drivers/sriovnicswitch
function enable_ml2_extension_driver {
local extension_driver=$1
if [[ -z "$Q_ML2_PLUGIN_EXT_DRIVERS" ]]; then
Q_ML2_PLUGIN_EXT_DRIVERS=$extension_driver
elif [[ ! ,${Q_ML2_PLUGIN_EXT_DRIVERS}, =~ ,${extension_driver}, ]]; then
Q_ML2_PLUGIN_EXT_DRIVERS+=",$extension_driver"
fi
}
function configure_qos_ml2 {
enable_ml2_extension_driver "qos"
neutron_ml2_extension_driver_add "qos"
}