From c6db2a0e40b336039d722eb4a10aa69d89f5b1d1 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Tue, 30 Apr 2019 16:24:54 +0000 Subject: [PATCH] Remove deprecated SR-IOV devstack file File [1] functionality is deprecated and not used anymore in devstack. Along with this file, the function "configure_ml2" [2] should be removed. This function is not used anymore [3]. [1]https://opendev.org/openstack/neutron/src/branch/stable/stein/devstack/lib/ml2_drivers/sriovnicswitch [2]https://opendev.org/openstack/neutron/src/branch/stable/stein/devstack/lib/ml2#L9 [3]http://codesearch.openstack.org/?q=configure_ml2&i=nope&files=&repos= Change-Id: I835a30244c505876c1b686ceb8c32b340c12b460 Closes-Bug: #1827089 --- devstack/lib/ml2 | 15 --------------- devstack/lib/ml2_drivers/sriovnicswitch | 3 --- 2 files changed, 18 deletions(-) delete mode 100644 devstack/lib/ml2_drivers/sriovnicswitch diff --git a/devstack/lib/ml2 b/devstack/lib/ml2 index 936e8d4b0f5..c4ccd0b01f7 100644 --- a/devstack/lib/ml2 +++ b/devstack/lib/ml2 @@ -1,23 +1,8 @@ -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 -} - function configure_ml2_extension_drivers { if is_neutron_legacy_enabled; then # NOTE(yamamoto): This overwrites what neutron-legacy set, diff --git a/devstack/lib/ml2_drivers/sriovnicswitch b/devstack/lib/ml2_drivers/sriovnicswitch deleted file mode 100644 index 3a12c067f90..00000000000 --- a/devstack/lib/ml2_drivers/sriovnicswitch +++ /dev/null @@ -1,3 +0,0 @@ -function configure_ml2_sriovnicswitch { - : -}