Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix only test eBGP neighbors for test_bgp_queues #14310

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/bgp/test_bgp_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ def test_bgp_queues(duthosts, enum_frontend_dut_hostname, enum_asic_index, tbinf
for k, v in list(bgp_facts['bgp_neighbors'].items()):
# Only consider established bgp sessions
if v['state'] == 'established':
# For "peer group" if it's internal it will be "INTERNAL_PEER_V4" or "INTERNAL_PEER_V6"
auspham marked this conversation as resolved.
Show resolved Hide resolved
# If it's external it will be "RH_V4", "RH_V6", "AH_V4", "AH_V6", ...
if "INTERNAL" in v["peer group"] and duthost.get_facts().get('modular_chassis'):
# Skip iBGP neighbors since we only want to verify eBGP
continue
assert (k in arp_dict.keys() or k in ndp_dict.keys())
if k in arp_dict:
ifname = arp_dict[k].split('.', 1)[0]
Expand Down
Loading