no bgp ebgp-requires-policy
neighbor 192.168.255.2 remote-as external
neighbor 192.168.255.2 timers 3 10
+ neighbor 192.168.255.2 timers connect 1
neighbor 192.168.255.2 bfd
+ neighbor 192.168.255.2 passive
address-family ipv4
redistribute connected
exit-address-family
no bgp ebgp-requires-policy
neighbor 192.168.255.1 remote-as external
neighbor 192.168.255.1 timers 3 10
+ neighbor 192.168.255.1 timers connect 1
neighbor 192.168.255.1 bfd
address-family ipv4
redistribute connected
expected = {
"192.168.255.1": {
"lastNotificationReason": "Cease/BFD Down",
+ "lastNotificationHardReset": True,
}
}
return topotest.json_cmp(output, expected)
step("Initial BGP converge")
test_func = functools.partial(_bgp_converge)
- _, result = topotest.run_and_expect(test_func, None, count=60, wait=0.5)
+ _, result = topotest.run_and_expect(test_func, None, count=60, wait=1)
assert result is None, "Failed to see BGP convergence on R2"
step("Kill bfdd on R2")
step("Check if we received Cease/BFD Down notification message")
test_func = functools.partial(_bgp_bfd_down_notification)
- _, result = topotest.run_and_expect(test_func, None, count=60, wait=0.5)
+ _, result = topotest.run_and_expect(test_func, None, count=60, wait=1)
assert result is None, "Failed to see BGP Cease/BFD Down notification message on R2"