Skip to content

Commit

Permalink
Fix typo on route_consistency (sonic-net#16089)
Browse files Browse the repository at this point in the history
Description of PR
Summary:
made a typo in PR16043, fix switch_type check with correct value

co-authorized by: [email protected]
  • Loading branch information
augusdn authored and mssonicbld committed Dec 17, 2024
1 parent f3c3670 commit cd64bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/route/test_route_consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_route_prefix_snapshot_from_asicdb(self, duthosts):
for idx, dut in enumerate(duthosts.frontend_nodes):
for asic in dut.asics:
dut_instance_name = dut.hostname + '-' + str(asic.asic_index)
if dut.facts['switch_type'] in ["voq", "chassis_packet"] and idx == 0:
if dut.facts['switch_type'] in ["voq", "chassis-packet"] and idx == 0:
dut_instance_name = dut_instance_name + "UpstreamLc"
prefix_snapshot[dut_instance_name] = \
set(self.extract_dest_ips(asic.run_sonic_db_cli_cmd('ASIC_DB KEYS *ROUTE_ENTRY*')['stdout_lines']))
Expand Down

0 comments on commit cd64bb5

Please sign in to comment.