Skip to content
Merged
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion src/sonic-config-engine/minigraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2241,7 +2241,7 @@ def parse_xml(filename, platform=None, port_config_file=None, asic_name=None, hw
# #voq switch_id for asic
# switch_id = chassis_metadata.get(asic_hostname, {}).get('asic_switch_id', None)
# on Voq system each asic has a switch_id
if switch_id is not None:
if switch_id is not None and chassis_type == CHASSIS_CARD_VOQ:
Copy link
Copy Markdown
Contributor

@arlakshm arlakshm Apr 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we change this to chassis_type != CHASSIS_CARD_PACKET_CHASSIS? in line 2249 for fabric cards we get the switch_id from minigraph and save it for CHASSIS_CARD_FABRIC

if sub_role is not None and FRONTEND_ASIC_SUB_ROLE == sub_role:
if slot_index is not None:
switch_id = get_asic_switch_id(slot_index, asic_name)
Expand Down