Commit 9a783536 authored by Committed by Ben Pfaff
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 <email@example.com> Acked-by: Jiri Benc <firstname.lastname@example.org> Signed-off-by: Ben Pfaff <email@example.com>
Showing with 5 additions and 1 deletion