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

[action] [PR:16076] support Ixia topology in sanity check #16349

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions tests/common/plugins/sanity_check/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ def _check_bgp_status_helper():
logger.info("No VMs in topology, skip checking bgp status on host %s ..." % dut.hostname)
results[dut.hostname] = check_result
return
if 'tgen' in tbinfo['topo'] or 'ixia' in tbinfo['topo']:
logger.info("TGEN/IXIA topology, skip checking bgp status on host %s ..." % dut.hostname)
results[dut.hostname] = check_result
return

networking_uptime = dut.get_networking_uptime().seconds
if SYSTEM_STABILIZE_MAX_TIME - networking_uptime + 480 > 500:
Expand Down
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,8 @@ def nbrhosts(enhance_inventory, ansible_adhoc, tbinfo, creds, request):
"""
logger.info("Fixture nbrhosts started")
devices = {}
if (not tbinfo['vm_base'] and 'tgen' in tbinfo['topo']['name']) or 'ptf' in tbinfo['topo']['name']:
if (not tbinfo['vm_base'] and 'tgen' in tbinfo['topo']['name']) or 'ptf' in tbinfo['topo']['name'] or \
'ixia' in tbinfo['topo']['name']:
logger.info("No VMs exist for this topology: {}".format(tbinfo['topo']['name']))
return devices

Expand Down
Loading