From 748fe3d5e33337555b0ae16ef1d3b3ed02ad80f2 Mon Sep 17 00:00:00 2001 From: Bob Melander Date: Thu, 31 Jan 2013 17:12:56 +0100 Subject: [PATCH] Changes to make Devstack work with Neutron L3 plugin patch. Implements bp/quantum-l3-plugin-support Change-Id: I0c56661685fb641efe34fee1390d7d4f37f84494 --- lib/neutron_plugins/ml2 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/neutron_plugins/ml2 b/lib/neutron_plugins/ml2 index 00bd716309..035d6cc81d 100644 --- a/lib/neutron_plugins/ml2 +++ b/lib/neutron_plugins/ml2 @@ -46,6 +46,15 @@ function neutron_plugin_configure_common() { Q_PLUGIN_CONF_FILENAME=ml2_conf.ini Q_DB_NAME="neutron_ml2" Q_PLUGIN_CLASS="neutron.plugins.ml2.plugin.Ml2Plugin" + # The ML2 plugin delegates L3 routing/NAT functionality to + # the L3 service plugin which must therefore be specified. + Q_L3_PLUGIN_CLASS=${Q_L3_PLUGIN_CLASS:-"neutron.services.l3_router.l3_router_plugin.L3RouterPlugin"} + if ini_has_option $NEUTRON_CONF DEFAULT service_plugins ; then + srv_plugins=$(iniget $NEUTRON_CONF DEFAULT service_plugins)","$Q_L3_PLUGIN_CLASS + else + srv_plugins=$Q_L3_PLUGIN_CLASS + fi + iniset $NEUTRON_CONF DEFAULT service_plugins $srv_plugins } function neutron_plugin_configure_service() {