Implements bp/quantum-l3-plugin-support
Change-Id: I0c56661685fb641efe34fee1390d7d4f37f84494
| ... | ... |
@@ -46,6 +46,15 @@ function neutron_plugin_configure_common() {
|
| 46 | 46 |
Q_PLUGIN_CONF_FILENAME=ml2_conf.ini |
| 47 | 47 |
Q_DB_NAME="neutron_ml2" |
| 48 | 48 |
Q_PLUGIN_CLASS="neutron.plugins.ml2.plugin.Ml2Plugin" |
| 49 |
+ # The ML2 plugin delegates L3 routing/NAT functionality to |
|
| 50 |
+ # the L3 service plugin which must therefore be specified. |
|
| 51 |
+ Q_L3_PLUGIN_CLASS=${Q_L3_PLUGIN_CLASS:-"neutron.services.l3_router.l3_router_plugin.L3RouterPlugin"}
|
|
| 52 |
+ if ini_has_option $NEUTRON_CONF DEFAULT service_plugins ; then |
|
| 53 |
+ srv_plugins=$(iniget $NEUTRON_CONF DEFAULT service_plugins)","$Q_L3_PLUGIN_CLASS |
|
| 54 |
+ else |
|
| 55 |
+ srv_plugins=$Q_L3_PLUGIN_CLASS |
|
| 56 |
+ fi |
|
| 57 |
+ iniset $NEUTRON_CONF DEFAULT service_plugins $srv_plugins |
|
| 49 | 58 |
} |
| 50 | 59 |
|
| 51 | 60 |
function neutron_plugin_configure_service() {
|