Checks if all BGP peers are in IDLE state.
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
all_bgp_idle = duthost.is_bgp_state_idle()
Takes no arguments
True
if all BGP neighbors are IDLE, False
otherwise.