Skip to content

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

Merged
liat-grozovik merged 1 commit intosonic-net:masterfrom
keboliu:master_sw_control_err_description
Dec 3, 2024
Merged

[Mellanox] [SFP API] Add support to the get_error_description function for when CMIS cable host management is enabled.#20964
liat-grozovik merged 1 commit intosonic-net:masterfrom
keboliu:master_sw_control_err_description

Conversation

@keboliu
Copy link
Copy Markdown
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
@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 <[email protected]>
@mssonicbld
Copy link
Copy Markdown
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 <[email protected]>
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 <[email protected]>
bingwang-ms pushed a commit to sonic-net/sonic-mgmt that referenced this pull request Mar 13, 2025
… enabled (#16573)

* Update spf platform test related to error status, due to sonic-net/sonic-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

* fix issue caused by the vs

* sfp test just run on physical setup

* update sfp tests

1. For cmis passive module, when cmis ver is 3.0, the expected state is ModuleLowPwr, else it is OK
JibinBao added a commit to JibinBao/sonic-mgmt that referenced this pull request Mar 17, 2025
… enabled (sonic-net#16573)

* Update spf platform test related to error status, due to sonic-net/sonic-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

* fix issue caused by the vs

* sfp test just run on physical setup

* update sfp tests

1. For cmis passive module, when cmis ver is 3.0, the expected state is ModuleLowPwr, else it is OK
JibinBao added a commit to JibinBao/sonic-mgmt that referenced this pull request Mar 17, 2025
… enabled (sonic-net#16573)

* Update spf platform test related to error status, due to sonic-net/sonic-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

* fix issue caused by the vs

* sfp test just run on physical setup

* update sfp tests

1. For cmis passive module, when cmis ver is 3.0, the expected state is ModuleLowPwr, else it is OK
bingwang-ms pushed a commit to sonic-net/sonic-mgmt that referenced this pull request Mar 18, 2025
… enabled (#16573) (#17540)

* Update spf platform test related to error status, due to sonic-net/sonic-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

* fix issue caused by the vs

* sfp test just run on physical setup

* update sfp tests

1. For cmis passive module, when cmis ver is 3.0, the expected state is ModuleLowPwr, else it is OK
OriTrabelsi pushed a commit to OriTrabelsi/sonic-mgmt that referenced this pull request Apr 1, 2025
… enabled (sonic-net#16573)

* Update spf platform test related to error status, due to sonic-net/sonic-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

* fix issue caused by the vs

* sfp test just run on physical setup

* update sfp tests

1. For cmis passive module, when cmis ver is 3.0, the expected state is ModuleLowPwr, else it is OK
JibinBao added a commit to JibinBao/sonic-mgmt that referenced this pull request Jun 30, 2025
… enabled (sonic-net#16573)

* Update spf platform test related to error status, due to sonic-net/sonic-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

* fix issue caused by the vs

* sfp test just run on physical setup

* update sfp tests

1. For cmis passive module, when cmis ver is 3.0, the expected state is ModuleLowPwr, else it is OK
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jun 30, 2025
… enabled (sonic-net#16573)

* Update spf platform test related to error status, due to sonic-net/sonic-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

* fix issue caused by the vs

* sfp test just run on physical setup

* update sfp tests

1. For cmis passive module, when cmis ver is 3.0, the expected state is ModuleLowPwr, else it is OK
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
… enabled (sonic-net#16573)

* Update spf platform test related to error status, due to sonic-net/sonic-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

* fix issue caused by the vs

* sfp test just run on physical setup

* update sfp tests

1. For cmis passive module, when cmis ver is 3.0, the expected state is ModuleLowPwr, else it is OK

Signed-off-by: Guy Shemesh <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
… enabled (sonic-net#16573)

* Update spf platform test related to error status, due to sonic-net/sonic-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

* fix issue caused by the vs

* sfp test just run on physical setup

* update sfp tests

1. For cmis passive module, when cmis ver is 3.0, the expected state is ModuleLowPwr, else it is OK

Signed-off-by: Guy Shemesh <[email protected]>
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