Browse code

change Quantum network plugin set part

Currently in devstack, Q_PLUGIN can be set to only one of well-known quantum plugins ("openvswitch", "linuxbridge", "ryu").
Setting it to a custom plugin causes stack.sh to exit with an error.
This commit lets you run devstack with Q_PLUGIN set to a custom Quantum plugin.

Change-Id: Iafe07cf162b5b07bee120b0c571149c374004bb3
Signed-off-by: Takaaki Suzuki <suzuki@midokura.com>

Takaaki Suzuki authored on 2012/10/25 14:23:58
Showing 1 changed files
... ...
@@ -1266,8 +1266,10 @@ if is_service_enabled quantum; then
1266 1266
         Q_PLUGIN_CONF_FILENAME=ryu.ini
1267 1267
         Q_DB_NAME="ovs_quantum"
1268 1268
         Q_PLUGIN_CLASS="quantum.plugins.ryu.ryu_quantum_plugin.RyuQuantumPluginV2"
1269
-    else
1270
-        echo "Unknown Quantum plugin '$Q_PLUGIN'.. exiting"
1269
+    fi
1270
+
1271
+    if [[ $Q_PLUGIN_CONF_PATH == '' || $Q_PLUGIN_CONF_FILENAME == '' || $Q_PLUGIN_CLASS == '' ]]; then
1272
+        echo "Quantum plugin not set.. exiting"
1271 1273
         exit 1
1272 1274
     fi
1273 1275