ensure that port is added to bridge after a reboot

This is a change to the interfaces file to allow
openvswitch to start the ovs-bridge and to add the
specified ports.  Without this change, the bridge
comes up after a reboot of the seed or undercloud,
but the port associated with the physical interface
doesn't come up.

Change-Id: Ic968f39b16934c9e55d9aa448cbd9de54f659d4d
Closes-Bug: 1373063
Co-Authored-By: Ashok kumaran B<ashokkumaran.b@hp.com>
This commit is contained in:
Ed Bak 2014-09-23 12:12:43 -06:00
parent 6b2b699301
commit c8f98bd704
1 changed files with 1 additions and 3 deletions

View File

@ -241,7 +241,6 @@ function configure_bridge_interface_dhcp_eni() {
if [ -z "$public_ip_addr" ]; then
# DHCP for the bridge itself.
cat >> $tmp_config <<EOF_CAT
auto $bridge
allow-ovs $bridge
iface $bridge inet dhcp
pre-up ip addr flush dev $interface
@ -253,13 +252,13 @@ iface $bridge inet dhcp
EOF_CAT
else
cat >> $tmp_config <<EOF_CAT
auto $bridge
allow-ovs $bridge
iface $bridge inet static
pre-up ip addr flush dev $interface
address $public_ip_addr
netmask $public_ip_netmask
ovs_type OVSBridge
ovs_ports $ovs_ports
ovs_extra set bridge $bridge other-config:hwaddr=$interface_mac
$route_line
@ -281,7 +280,6 @@ EOF_CAT
#interface config
cat >> $tmp_config <<EOF_CAT
auto $interface
allow-$bridge $interface
iface $interface inet manual
ovs_bridge $bridge