Fixes failure of test due to not yet fully destroyed ports from
previous test if ovs-vswitchd was killed.
Example:
netdev_linux|WARN|br0: creating tap device failed: Device or resource busy
bridge|WARN|could not open network device br0 (Device or resource busy)
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Joe Stringer <joe@ovn.org>
# specifies the expected output after filtering through uuidfilt.pl.
m4_define([OVS_TRAFFIC_VSWITCHD_START],
[
+ OVS_WAIT_WHILE([ip link show ovs-netdev])
_OVS_VSWITCHD_START([--disable-system])
dnl Add bridges, ports, etc.
+ OVS_WAIT_WHILE([ip link show br0])
AT_CHECK([ovs-vsctl -- _ADD_BR([br0]) -- $1 m4_if([$2], [], [], [| ${PERL} $srcdir/uuidfilt.pl])], [0], [$2])
])