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

[multi-asic] skip the neighbor check if the neighbor is ASIC #3908

Merged
merged 1 commit into from
Jul 29, 2021
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
3 changes: 2 additions & 1 deletion tests/test_nbr_health.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,12 @@ def test_neighbors_health(duthosts, localhost, nbrhosts, eos, sonic, enum_fronte
dut_type = dev_meta["localhost"]["type"]

for k, v in nei_meta.items():
if v['type'] in ['SmartCable', 'Server'] or dut_type == v['type']:
if v['type'] in ['SmartCable', 'Server', 'Asic'] or dut_type == v['type']:
# Smart cable doesn't respond to snmp, it doesn't have BGP session either.
# DualToR has the peer ToR listed in device as well. If the device type
# is the same as testing DUT, then it is the peer.
# The server neighbors need to be skipped too.
# Skip if the neigbhor is asic as well.
continue

nbrhost = nbrhosts[k]['host']
Expand Down