File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -537,19 +537,3 @@ setup, with small modifications for the interface mappings.
537537 PUBLIC_PHYSICAL_NETWORK=default
538538 LB_INTERFACE_MAPPINGS=default:eth0
539539
540- Creating specific OVS bridges for physical networks
541- ---------------------------------------------------
542-
543- When using the Open vSwitch ML2 mechanism driver, it is possible to
544- have multiple Open vSwitch bridges meant for physical networking be
545- automatically created by setting the ``OVS_BRIDGE_MAPPINGS `` to a list of
546- physical network to bridge name associations with the following syntax:
547-
548- ::
549-
550- OVS_BRIDGE_MAPPINGS=net1name:bridge1name,net2name:bridge2name,<...>
551-
552- Also, ``OVS_BRIDGE_MAPPINGS `` has precedence over ``PHYSICAL_NETWORK `` and
553- ``OVS_PHYSICAL_BRIDGE ``, meaning that if the former is set, the latter
554- ones will be ignored. When ``OVS_BRIDGE_MAPPINGS `` is not set, the other
555- variables will still be evaluated.
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ function neutron_plugin_configure_l3_agent {
3737}
3838
3939function neutron_plugin_configure_plugin_agent {
40- local mappings_array mapping phys_bridge
4140 # Setup integration bridge
4241 _neutron_ovs_base_setup_bridge $OVS_BRIDGE
4342 _neutron_ovs_base_configure_firewall_driver
@@ -53,15 +52,9 @@ function neutron_plugin_configure_plugin_agent {
5352 # complex physical network configurations.
5453 if [[ " $OVS_BRIDGE_MAPPINGS " == " " ]] && [[ " $PHYSICAL_NETWORK " != " " ]] && [[ " $OVS_PHYSICAL_BRIDGE " != " " ]]; then
5554 OVS_BRIDGE_MAPPINGS=$PHYSICAL_NETWORK :$OVS_PHYSICAL_BRIDGE
56- fi
5755
58- if [[ " $OVS_BRIDGE_MAPPINGS " != " " ]]; then
59- IFS=' ,' read -a mappings_array <<< " $OVS_BRIDGE_MAPPINGS"
60- for mapping in " ${mappings_array[@]} " ; do
61- phys_bridge=` echo $mapping | cut -f 2 -d " :" `
62- # Configure bridge manually with physical interface as port for multi-node
63- _neutron_ovs_base_add_bridge $phys_bridge
64- done
56+ # Configure bridge manually with physical interface as port for multi-node
57+ _neutron_ovs_base_add_bridge $OVS_PHYSICAL_BRIDGE
6558 fi
6659 if [[ " $OVS_BRIDGE_MAPPINGS " != " " ]]; then
6760 iniset /$Q_PLUGIN_CONF_FILE ovs bridge_mappings $OVS_BRIDGE_MAPPINGS
You can’t perform that action at this time.
0 commit comments