devstack: configure ml2 extension drivers using lib/neutron
Change-Id: If3b863432ee12fc449bc3b7bfa60686dd2ca49b0 Depends-On: I45f017d1b8a3054452c3166ed4fb460d21959adb
This commit is contained in:
parent
a94223a685
commit
a86896f176
@ -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
|
||||
|
@ -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"
|
||||
}
|
||||
|
||||
|
||||
@ -26,4 +16,4 @@ function configure_ml2 {
|
||||
configure_ml2_$mechanism_driver
|
||||
fi
|
||||
done
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user