Skip to content

Commit a794a01

Browse files
sanjair-gitgshemesh2
authored andcommitted
Changes for VOQ single-dut multi-asic (sonic-net#17836)
Split the original PR Reg: Changes of VOQ Single Dut Multi asic sonic-net#17130 into individual PRs for each test. This is an enhancement to support VOQ Single DUT Multi-ASIC setup for T2 topo. Type of change Bug fix Testbed and Framework(new/improvement) New Test case Skipped for non-supported platforms Test case improvement Back port request 202012 202205 202305 202311 202405 202411 Approach What is the motivation for this PR? New testbed modification of VOQ Single DUT and multi-asic. How did you do it? If T2 topo, decide based on the number of Duts. How did you verify/test it? Any platform specific information? Supported testbed topology if it's a new test case? T2 VOQ Single Dut Multi ASIC Signed-off-by: Guy Shemesh <[email protected]>
1 parent 06e3941 commit a794a01

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/everflow/everflow_test_utilities.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,11 @@ def setup_info(duthosts, rand_one_dut_hostname, tbinfo, request, topo_scenario):
355355
duthost = None
356356
topo = tbinfo['topo']['name']
357357
if 't2' in topo:
358-
pytest_assert(len(duthosts) > 1, "Test must run on whole chassis")
359-
downstream_duthost, upstream_duthost = get_t2_duthost(duthosts, tbinfo)
358+
if len(duthosts) == 1:
359+
downstream_duthost = upstream_duthost = duthost = duthosts[rand_one_dut_hostname]
360+
else:
361+
pytest_assert(len(duthosts) > 2, "Test must run on whole chassis")
362+
downstream_duthost, upstream_duthost = get_t2_duthost(duthosts, tbinfo)
360363
else:
361364
downstream_duthost = upstream_duthost = duthost = duthosts[rand_one_dut_hostname]
362365

0 commit comments

Comments
 (0)