Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mellanox] [SFP API] Add support to the get_error_description function for when CMIS cable host management is enabled. #20964

Merged

Conversation

keboliu
Copy link
Collaborator

@keboliu keboliu commented Nov 29, 2024

Why I did it

get_error_description is not supported when CMIS cable host mgmt. enabled, now enable this function and use the community common implementation.

Work item tracking
  • Microsoft ADO (number only):

How I did it

When CMIS cable host mgmt. enabled, call the common platform API. Keep using original implementation in FW control mode.

How to verify it

Test this API on different platforms in different modes.
Run SFP related sonic-mgmt test cases

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305
  • 202405

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@keboliu keboliu requested a review from lguohan as a code owner November 29, 2024 01:47
@keboliu keboliu requested review from Junchao-Mellanox and mihirpat1 and removed request for lguohan November 29, 2024 01:47
@liat-grozovik liat-grozovik merged commit 9e64ebe into sonic-net:master Dec 3, 2024
12 checks passed
@keboliu keboliu deleted the master_sw_control_err_description branch December 5, 2024 02:30
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Dec 18, 2024
…n for when CMIS cable host management is enabled. (sonic-net#20964)

- Why I did it
get_error_description is not supported when CMIS cable host mgmt. enabled, now enable this function and use the community common implementation.

- How I did it
When CMIS cable host mgmt. enabled, call the common platform API. Keep using original implementation in FW control mode.

- How to verify it
Test this API on different platforms in different modes.
Run SFP related sonic-mgmt test cases

Signed-off-by: Kebo Liu <kebol@nvidia.com>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #21215

mssonicbld pushed a commit that referenced this pull request Dec 18, 2024
…n for when CMIS cable host management is enabled. (#20964)

- Why I did it
get_error_description is not supported when CMIS cable host mgmt. enabled, now enable this function and use the community common implementation.

- How I did it
When CMIS cable host mgmt. enabled, call the common platform API. Keep using original implementation in FW control mode.

- How to verify it
Test this API on different platforms in different modes.
Run SFP related sonic-mgmt test cases

Signed-off-by: Kebo Liu <kebol@nvidia.com>
JibinBao added a commit to JibinBao/sonic-mgmt that referenced this pull request Jan 17, 2025
…nic-buildimage#20964

When software control is enabled, the port error status is as follows:
1. For active module, the expected state is OK
2. For cmis passive module, the expected state is ModuleLowPwr
3. For non cmis passive module, the expected state is 'Not supported'

when software control is disabled, the port error status keep the original behaviour
JibinBao added a commit to JibinBao/sonic-mgmt that referenced this pull request Jan 20, 2025
…nic-buildimage#20964

When software control is enabled, the port error status is as follows:
1. For active module, the expected state is OK
2. For cmis passive module, the expected state is ModuleLowPwr
3. For non cmis passive module, the expected state is 'Not supported'

when software control is disabled, the port error status keep the original behaviour
VladimirKuk pushed a commit to Marvell-switching/sonic-buildimage that referenced this pull request Jan 21, 2025
…n for when CMIS cable host management is enabled. (sonic-net#20964)

- Why I did it
get_error_description is not supported when CMIS cable host mgmt. enabled, now enable this function and use the community common implementation.

- How I did it
When CMIS cable host mgmt. enabled, call the common platform API. Keep using original implementation in FW control mode.

- How to verify it
Test this API on different platforms in different modes.
Run SFP related sonic-mgmt test cases

Signed-off-by: Kebo Liu <kebol@nvidia.com>
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.

6 participants