neutron/devstack/lib/ml2
Ihar Hrachyshka a86896f176 devstack: configure ml2 extension drivers using lib/neutron
Change-Id: If3b863432ee12fc449bc3b7bfa60686dd2ca49b0
Depends-On: I45f017d1b8a3054452c3166ed4fb460d21959adb
2017-03-07 10:28:37 +00:00

20 lines
458 B
Plaintext

source $LIBDIR/ml2_drivers/sriovnicswitch
function configure_qos_ml2 {
neutron_ml2_extension_driver_add "qos"
}
function configure_ml2 {
OIFS=$IFS;
IFS=",";
mechanism_drivers_array=($Q_ML2_PLUGIN_MECHANISM_DRIVERS);
IFS=$OIFS;
for mechanism_driver in "${mechanism_drivers_array[@]}"; do
if [ "$(type -t configure_ml2_$mechanism_driver)" = function ]; then
configure_ml2_$mechanism_driver
fi
done
}