Run the ovs-appctl time/stop command after OVS_VSWITCHD_START.
Also increase the wait time before checking if BFD session is up in
test 4.
Signed-off-by: Pavithra Ramesh <paramesh@vmware.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
])
])
AT_SETUP([bfd - basic config on different bridges])
])
])
AT_SETUP([bfd - basic config on different bridges])
#Create 2 bridges connected by patch ports and enable BFD
OVS_VSWITCHD_START(
[add-br br1 -- \
#Create 2 bridges connected by patch ports and enable BFD
OVS_VSWITCHD_START(
[add-br br1 -- \
options:peer=p1 -- \
set Interface p0 bfd:enable=true -- \
set Interface p1 bfd:enable=true ])
options:peer=p1 -- \
set Interface p0 bfd:enable=true -- \
set Interface p1 bfd:enable=true ])
for i in `seq 0 40`; do ovs-appctl time/warp 100; done
#Verify that BFD has been enabled on both interfaces.
for i in `seq 0 40`; do ovs-appctl time/warp 100; done
#Verify that BFD has been enabled on both interfaces.
#interfaces in br-bfd0 and br-bfd1. When br-sw is dropping all packets, BFD should detect
# that the tunnel is down, and come back up when br-sw is working fine.
#interfaces in br-bfd0 and br-bfd1. When br-sw is dropping all packets, BFD should detect
# that the tunnel is down, and come back up when br-sw is working fine.
OVS_VSWITCHD_START(
[add-br br-bfd0 -- \
set bridge br-bfd0 datapath-type=dummy \
OVS_VSWITCHD_START(
[add-br br-bfd0 -- \
set bridge br-bfd0 datapath-type=dummy \
add-port br-bfd0 p0 -- set Interface p0 type=patch \
options:peer=p0-sw bfd:enable=true --])
add-port br-bfd0 p0 -- set Interface p0 type=patch \
options:peer=p0-sw bfd:enable=true --])
#Create 2 bridges connected by patch ports and enable BFD
#Create 2 bridges connected by patch ports and enable BFD
AT_SETUP([bfd - concatenated path down])
#Create 2 bridges connected by patch ports and enable BFD
AT_SETUP([bfd - concatenated path down])
#Create 2 bridges connected by patch ports and enable BFD
AT_CHECK([ ovs-vsctl -- add-br br1 -- \
set bridge br1 datapath-type=dummy \
other-config:hwaddr=aa:55:aa:56:00:00 ])
AT_CHECK([ ovs-vsctl -- add-br br1 -- \
set bridge br1 datapath-type=dummy \
other-config:hwaddr=aa:55:aa:56:00:00 ])
AT_CHECK([ ovs-vsctl -- add-port br1 p1 -- set Interface p1 type=patch \
options:peer=p0 ])
AT_CHECK([ ovs-vsctl -- add-port br0 p0 -- set Interface p0 type=patch \
AT_CHECK([ ovs-vsctl -- add-port br1 p1 -- set Interface p1 type=patch \
options:peer=p0 ])
AT_CHECK([ ovs-vsctl -- add-port br0 p0 -- set Interface p0 type=patch \
AT_SETUP([bfd - Edit the Min Tx/Rx values])
#Create 2 bridges connected by patch ports and enable BFD
AT_SETUP([bfd - Edit the Min Tx/Rx values])
#Create 2 bridges connected by patch ports and enable BFD
-ovs-appctl time/stop
-ovs-appctl vlog/set bfd:dbg
AT_CHECK([ ovs-vsctl -- add-br br1 -- \
set bridge br1 datapath-type=dummy ])
AT_CHECK([ ovs-vsctl -- add-port br1 p1 -- set Interface p1 type=patch \
AT_CHECK([ ovs-vsctl -- add-br br1 -- \
set bridge br1 datapath-type=dummy ])
AT_CHECK([ ovs-vsctl -- add-port br1 p1 -- set Interface p1 type=patch \
options:peer=p1 ])
AT_CHECK([ ovs-vsctl -- set interface p0 bfd:enable=true ])
AT_CHECK([ ovs-vsctl -- set interface p1 bfd:enable=true ])
options:peer=p1 ])
AT_CHECK([ ovs-vsctl -- set interface p0 bfd:enable=true ])
AT_CHECK([ ovs-vsctl -- set interface p1 bfd:enable=true ])
-for i in `seq 0 20`; do ovs-appctl time/warp 100; done
+for i in `seq 0 30`; do ovs-appctl time/warp 100; done
#Verify that BFD has been enabled on both interfaces.
BFD_CHECK([p1], [true], [false], [none], [up], [No Diagnostic], [none], [up], [No Diagnostic])
BFD_CHECK([p0], [true], [false], [none], [up], [No Diagnostic], [none], [up], [No Diagnostic])
#Verify that BFD has been enabled on both interfaces.
BFD_CHECK([p1], [true], [false], [none], [up], [No Diagnostic], [none], [up], [No Diagnostic])
BFD_CHECK([p0], [true], [false], [none], [up], [No Diagnostic], [none], [up], [No Diagnostic])