diff --git a/tests/bgp/test_bgp_session_flap.py b/tests/bgp/test_bgp_session_flap.py index f41fafc6894..3ed3d564ee9 100644 --- a/tests/bgp/test_bgp_session_flap.py +++ b/tests/bgp/test_bgp_session_flap.py @@ -66,7 +66,8 @@ def setup(tbinfo, nbrhosts, duthosts, enum_frontend_dut_hostname, enum_rand_one_ tor_neighbors = dict() neigh_asn = dict() for k, v in bgp_facts['bgp_neighbors'].items(): - if 'asic' not in v['description'].lower(): + # Skip iBGP neighbors + if "INTERNAL" not in v["peer group"] and "VOQ_CHASSIS" not in v["peer group"]: neigh_keys.append(v['description']) neigh_asn[v['description']] = v['remote AS'] tor_neighbors[v['description']] = nbrhosts[v['description']]["host"]