Otherwise neutron will fail to bind external ports because of missing
entries for external physical network in the mapping.
Configure it only when l3 agent is also installed on the node (otherwise
the l2 agent is not exposed to external network and hence doesn't have
the bridge).
Change-Id: I561b74538acb0dc39f1af3e832108ce6a99441b0
... | ... |
@@ -211,6 +211,13 @@ function configure_neutron_new { |
211 | 211 |
iniset $NEUTRON_L3_CONF agent root_helper_daemon "$NEUTRON_ROOTWRAP_DAEMON_CMD" |
212 | 212 |
iniset $NEUTRON_L3_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL |
213 | 213 |
neutron_plugin_configure_l3_agent $NEUTRON_L3_CONF |
214 |
+ |
|
215 |
+ # Configure the neutron agent to serve external network ports |
|
216 |
+ if [[ $NEUTRON_AGENT == "linuxbridge" ]]; then |
|
217 |
+ iniset $NEUTRON_CORE_PLUGIN_CONF linux_bridge bridge_mappings "$PUBLIC_NETWORK_NAME:$PUBLIC_BRIDGE" |
|
218 |
+ else |
|
219 |
+ iniset $NEUTRON_CORE_PLUGIN_CONF ovs bridge_mappings "$PUBLIC_NETWORK_NAME:$PUBLIC_BRIDGE" |
|
220 |
+ fi |
|
214 | 221 |
fi |
215 | 222 |
|
216 | 223 |
# Metadata |