rhel: Fix ifup-ovs to delete ports first.
authorFlavio Leitner <fbl@redhat.com>
Fri, 17 Jul 2015 16:56:21 +0000 (13:56 -0300)
committerBen Pfaff <blp@nicira.com>
Tue, 21 Jul 2015 18:37:13 +0000 (11:37 -0700)
commit24496b4ac2dda14f99fc64e7f68c19b7af27a4c1
tree7df8fa5183f750902c59cf5035c8f6aaf1d33936
parent73cd29796f97a96fdc01823ef416c9ed40c1ee4c
rhel: Fix ifup-ovs to delete ports first.

When ifdown isn't executed (system didn't shut down properly),
the interfaces remain in the openvswitch's database.  For the
internal ports or devices that are available when openvswitch
service starts that's not an issue.

However, ovs-vsctl won't do anything for devices created later
(Linux vlan devices for instance) since they are already in the
database. That leaves a inconsistency behind because they will
be left out of the kernel's datapath.

The ifup/ifdown will operate only on configured interfaces, so
this patch fixes the issue by deleting the interface from the
database before attempt to configure it.

Signed-off-by: Flavio Leitner <fbl@redhat.com>
Acked-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
rhel/etc_sysconfig_network-scripts_ifup-ovs