[201911][component]: Introduce new firmware management API#87
Merged
jleveque merged 1 commit intosonic-net:201911from May 22, 2020
Merged
Conversation
Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>
This was referenced May 21, 2020
liat-grozovik
approved these changes
May 22, 2020
jleveque
approved these changes
May 22, 2020
Contributor
|
@nazariig: Should this be cherry-picked into 201911, also? |
Collaborator
Author
Contributor
|
@nazariig: Thanks. Somehow I swore I saw "master" as the target. :P |
oleksandrivantsiv
pushed a commit
to oleksandrivantsiv/sonic-platform-common
that referenced
this pull request
Oct 25, 2024
…onic-net#87) * Updated based on sonic-swss-common changes to get the namespace (PR#378)
Junchao-Mellanox
pushed a commit
to Junchao-Mellanox/sonic-platform-common
that referenced
this pull request
Jun 10, 2025
…nic-net#87) <!-- Provide a general summary of your changes in the Title above --> #### Description `XcvrApiFactory.create_xcvr_api` may raise exception (e.g. the EEPROM is corrupted which has non unicode character). The exception would cause xcvrd crash. The PR is to catch the exception so that `XcvrApiFactory.create_xcvr_api` either return a None or a valid API object #### Motivation and Context When there is invalid character in module EEPROM, it would crash xcvrd and affect other healthy modules. The PR catches the exception in `XcvrApiFactory.create_xcvr_api` to prevent it affecting other modules. #### How Has This Been Tested? <!-- Please describe in detail how you tested your changes. Include details of your testing environment, and the tests you ran to see how your change affects other areas of the code, etc. --> unit test manual test #### Additional Information (Optional)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Nazarii Hnydyn nazariig@mellanox.com
Summary:
The purpose of this PR is to propagate some new component firmware management APIs which are intended to make the process more versatile. These new API's will be used mostly to extend fwutil functionality in order to support new platform components (e.g, SSD).
Motivation: