Browse Source

Directly source ML2 plugin for devstack

Source the plugin so we can directly invoke the ml2 helper methods
without loading neutron-legacy devstack code which we do by using
the q-* service names.

This enables migration to the neutron-* service names to occur.

Change-Id: Ia10839f36a240a503eb4b673a4e39105f1c6abb5
Julia Kreger 3 months ago
parent
commit
82d4cf6f88
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      devstack/plugin.sh

+ 10
- 0
devstack/plugin.sh View File

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

Loading…
Cancel
Save