Skip to content

Commit 1243f8b

Browse files
sanjair-gitAharonMalkin
authored andcommitted
Changes for VOQ single-dut multi-asic (sonic-net#17852)
What is the motivation for this PR? New testbed modification of VOQ Single DUT and multi-asic. How did you do it? If switch type is VOQ, decide supervisor based on the number of Duts and also based on if the DUT is modular chassis or not. How did you verify/test it? Signed-off-by: Aharon Malkin <amalkin@nvidia.com>
1 parent d516e2c commit 1243f8b

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

tests/common/helpers/voq_lag.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,14 @@ def get_lag_id_from_chassis_db(duthosts, pc=TMP_PC):
3939
Returns:
4040
lag_id: LAG ID of LAG
4141
"""
42-
for sup in duthosts.supervisor_nodes:
43-
voqdb = VoqDbCli(sup)
42+
duthosts[0].facts['switch_type'] == "voq"
43+
is_chassis = duthosts[0].get_facts().get("modular_chassis")
44+
if duthosts[0].facts['switch_type'] == "voq" and not is_chassis:
45+
nodes = [duthosts[0]]
46+
else:
47+
nodes = duthosts.supervisor_nodes
48+
for node in nodes:
49+
voqdb = VoqDbCli(node)
4450
lag_list = voqdb.get_lag_list()
4551
for lag in lag_list:
4652
if pc in lag:

0 commit comments

Comments
 (0)