Checks if BGP neighbor session has entered Nonstop Forwarding(NSF) state
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
bgp_nbrs = duthost.get_bgp_neighbors()
rand_bgp_ip = random.choice(bgp_nbrs.keys())
is_nsf = duthost.check_bgp_session_nsf(rand_bgp_ip)
neighbor_ip
- BGP IP of neighbor NSF status is desired for- Required:
True
- Type:
String
- Required:
True
if BGP session is in NSF state, False
otherwise.