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] Provide default implementation for sfp error description when CMIS host management is enabled #17294

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

Junchao-Mellanox
Copy link
Collaborator

Why I did it

Provide a dummy implementation for SFP error description when CMIS host management is enabled. A future feature shall be raised to implement SFP error description for such mode.

Work item tracking
  • Microsoft ADO (number only):

How I did it

  1. if SFP is under software control, provide "Not supported" as error description
  2. if SFP is under initialization, provide "Initializing" as error description

How to verify it

unit test

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

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

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)

@prgeor
Copy link
Contributor

prgeor commented Dec 5, 2023

@liat-grozovik please merge

@liat-grozovik liat-grozovik merged commit 26bf38b into sonic-net:master Dec 5, 2023
13 checks passed
@Junchao-Mellanox Junchao-Mellanox deleted the master-error-desc branch December 12, 2023 09:47
@Junchao-Mellanox
Copy link
Collaborator Author

Hi @yxieca , could you please help cherry-pick to 202311?

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Jan 3, 2024
…hen CMIS host management is enabled (sonic-net#17294)

- Why I did it
Provide a dummy implementation for SFP error description when CMIS host management is enabled. A future feature shall be raised to implement SFP error description for such mode.

- How I did it
if SFP is under software control, provide "Not supported" as error description
if SFP is under initialization, provide "Initializing" as error description

- How to verify it
unit test
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #17664

mssonicbld pushed a commit that referenced this pull request Jan 4, 2024
…hen CMIS host management is enabled (#17294)

- Why I did it
Provide a dummy implementation for SFP error description when CMIS host management is enabled. A future feature shall be raised to implement SFP error description for such mode.

- How I did it
if SFP is under software control, provide "Not supported" as error description
if SFP is under initialization, provide "Initializing" as error description

- How to verify it
unit test
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