Skip to content

[action] [PR:13710] [Mellanox] Fix issue: cannot find label port for logical port when logical port number is larger than 64#13962

Merged
mssonicbld merged 1 commit intosonic-net:202211from
mssonicbld:cherry/202211/13710
Mar 6, 2023
Merged

[action] [PR:13710] [Mellanox] Fix issue: cannot find label port for logical port when logical port number is larger than 64#13962
mssonicbld merged 1 commit intosonic-net:202211from
mssonicbld:cherry/202211/13710

Conversation

@mssonicbld
Copy link
Collaborator

No description provided.

…gical port number is larger than 64 (sonic-net#13710)

- Why I did it
sfp_event.py gets a PMPE message when a cable event is available. In PMPE message, there is no label port available. Current sfp_event.py is using sx_api_port_device_get to get 64 logical ports attributes, and find the label port from those 64 attributes. However, if there are more than 64 ports, sfp_event.py might not be able to find the label port and drop the PMPE message.

- How I did it
Don't use hardcoded 64, get logical port number instead.

- How to verify it
Manual test
@mssonicbld
Copy link
Collaborator Author

Original PR: #13710

@xumia
Copy link
Collaborator

xumia commented Mar 6, 2023

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit aea96da into sonic-net:202211 Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants