Skip to content
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
7 changes: 5 additions & 2 deletions tests/common/fixtures/fib_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ def get_t2_fib_info(duthosts, duts_cfg_facts, duts_mg_facts):
dut_port_channels.setdefault(duthost.hostname, {}).update(asic_cfg_facts[1].get('PORTCHANNEL_MEMBER', {}))
sys_neigh = {}
if switch_type == "voq":
voq_db = VoqDbCli(duthosts.supervisor_nodes[0])
if len(duthosts) == 1:
voq_db = VoqDbCli(duthosts.frontend_nodes[0])
else:
voq_db = VoqDbCli(duthosts.supervisor_nodes[0])
for entry in voq_db.dump_neighbor_table():
neigh_key = entry.split('|')
neigh_ip = neigh_key[-1]
Expand Down Expand Up @@ -356,7 +359,7 @@ def fib_info_files_per_function(duthosts, ptfhost, duts_running_config_facts, du
@pytest.fixture(scope="module")
def single_fib_for_duts(tbinfo, duthosts):
# For a T2 topology, we are generating a single fib file across all asics, but have multiple frontend nodes (DUTS).
if tbinfo['topo']['type'] == "t2":
if tbinfo['topo']['type'] == "t2" and len(duthosts) > 1:
if duthosts[0].facts['switch_type'] == "voq":
return "single-fib-single-hop"
else:
Expand Down