-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix port index for multi-asic #13042
Conversation
Port indexes of front panel ports are not contiguous in multi-asic because we didn't distiguish between front panel and internal ports, e.g., recycle ports. Fix this by assigning index to front panel port first and then internal ports.
Add @arlakshm for visibility. |
Add @wenyiz2021 who reported issue aristanetworks/sonic#56 . |
thanks @ysmanman for changing port_config.ini, can you please also add the change in mingiraph.py, as I mentioned in the issue?
|
@ysmanman |
@wenyiz2021 Arista-7800R3A-36DM2-C36 is just a symbol link of 36D2-C36. |
This issue is not in minigraph.py, it was resolved after re-generating minigraph on the device. The change LGTM |
@ysmanman can you please resolve the conflict and merge PR? thanks |
Hi @wenyiz2021 resolved conflicts just now. I don't think I have permission to add label neither. @rlhui may have the permission. |
/azp run |
Commenter does not have sufficient privileges for PR 13042 in repo sonic-net/sonic-buildimage |
/azp run |
Commenter does not have sufficient privileges for PR 13042 in repo sonic-net/sonic-buildimage |
@ysmanman can you please merge this? thanks |
@wenyiz2021 I don't think I have write access to the repo. so I am not able to merge it. |
Port indexes of front panel ports are not contiguous in multi-asic because we didn't distiguish between front panel and internal ports, e.g., recycle ports. Fix this by assigning index to front panel port first and then internal ports.
Cherry-pick PR to 202205: #13086 |
Port indexes of front panel ports are not contiguous in multi-asic because we didn't distiguish between front panel and internal ports, e.g., recycle ports. Fix this by assigning index to front panel port first and then internal ports. Co-authored-by: Song Yuan <64041228+ysmanman@users.noreply.github.com>
Why I did it
Port indexes of front panel ports are not contiguous in multi-asic because we didn't distinguish between front panel and internal ports, e.g., recycle ports. This could cause xcvrd crash seen in aristanetworks/sonic#56
How I did it
Fix this by assigning index to front panel port first and then internal ports.
How to verify it
Loaded the image with the fix in multi-asic LC and verified that xcvrd was not crashing in pmon.
Which release branch to backport (provide reason below if selected)
Description for the changelog
Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)