bd07b74045
Change-Id: Ia0649962bd0c68d9c99fd54cc84ce8dd67d792e8
29 lines
766 B
Plaintext
29 lines
766 B
Plaintext
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"
|
|
}
|
|
|
|
|
|
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
|
|
} |