Browse Source

Merge "Directly source ML2 plugin for devstack"

Zuul 3 months ago
parent
commit
28e6c91dca
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      devstack/plugin.sh

+ 10
- 0
devstack/plugin.sh View File

@@ -219,6 +219,16 @@ if is_service_enabled generic_switch; then
219 219
     elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
220 220
         # Configure after the other layer 1 and 2 services have been configured
221 221
         echo_summary "Configuring Generic_switch ML2"
222
+
223
+        # Source ml2 plugin, set default config
224
+        if is_service_enabled neutron; then
225
+            source $RC_DIR/lib/neutron_plugins/ml2
226
+            Q_PLUGIN_CONF_PATH=etc/neutron/plugins/ml2
227
+            Q_PLUGIN_CONF_FILENAME=ml2_conf.ini
228
+            Q_PLUGIN_CONF_FILE="/${Q_PLUGIN_CONF_PATH}/${Q_PLUGIN_CONF_FILENAME}"
229
+            Q_PLUGIN_CLASS="ml2"
230
+        fi
231
+
222 232
         configure_generic_switch
223 233
     elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
224 234
         if is_service_enabled tempest; then

Loading…
Cancel
Save