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

[CMIS]The "get_error_description" function should return 'OK' instead of None when there are no errors. #518

Merged

Conversation

keboliu
Copy link
Collaborator

@keboliu keboliu commented Nov 29, 2024

Description

The "get_error_description" function should return 'OK' instead of 'None' when there are no errors.

Motivation and Context

When there are no errors on the cable, get_error_description currently returns 'None'. In this case, we should return 'OK' so that the CLI (show interface transceiver error-description) provides a proper output.

How Has This Been Tested?

Call this API directly on different cables with different error statuses.

Additional Information (Optional)

@keboliu keboliu requested a review from prgeor December 5, 2024 02:32
@keboliu
Copy link
Collaborator Author

keboliu commented Dec 5, 2024

@prgeor would you please help to merge?

@liat-grozovik liat-grozovik merged commit e955e58 into sonic-net:master Dec 9, 2024
5 checks passed
@liat-grozovik
Copy link
Collaborator

@keboliu on which branches this change should go?

@keboliu keboliu deleted the master_fix_error_description branch December 9, 2024 09:37
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.

4 participants