Add support to passing the flat_network configuration. User can
either passing the physical network name, or use the physical
network definition
Change-Id: Ie42679f207eb14620883778314f74abf378b5cbc
| ... | ... |
@@ -84,6 +84,11 @@ function neutron_plugin_configure_service {
|
| 84 | 84 |
fi |
| 85 | 85 |
fi |
| 86 | 86 |
|
| 87 |
+ |
|
| 88 |
+ # Allow for setup the flat type network |
|
| 89 |
+ if [[ -z "$Q_ML2_PLUGIN_FLAT_TYPE_OPTIONS" && -n "$PHYSICAL_NETWORK" ]]; then |
|
| 90 |
+ Q_ML2_PLUGIN_FLAT_TYPE_OPTIONS="flat_networks=$Q_ML2_FLAT_PHYSNET_OPTIONS" |
|
| 91 |
+ fi |
|
| 87 | 92 |
# REVISIT(rkukura): Setting firewall_driver here for |
| 88 | 93 |
# neutron.agent.securitygroups_rpc.is_firewall_enabled() which is |
| 89 | 94 |
# used in the server, in case no L2 agent is configured on the |
| ... | ... |
@@ -110,6 +115,8 @@ function neutron_plugin_configure_service {
|
| 110 | 110 |
|
| 111 | 111 |
populate_ml2_config /$Q_PLUGIN_CONF_FILE ml2_type_vxlan $Q_ML2_PLUGIN_VXLAN_TYPE_OPTIONS |
| 112 | 112 |
|
| 113 |
+ populate_ml2_config /$Q_PLUGIN_CONF_FILE ml2_type_flat $Q_ML2_PLUGIN_FLAT_TYPE_OPTIONS |
|
| 114 |
+ |
|
| 113 | 115 |
populate_ml2_config /$Q_PLUGIN_CONF_FILE ml2_type_vlan $Q_ML2_PLUGIN_VLAN_TYPE_OPTIONS |
| 114 | 116 |
|
| 115 | 117 |
if [[ "$Q_DVR_MODE" != "legacy" ]]; then |