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] fix sfp issue in reading qsfp_status #3386

Merged
merged 3 commits into from
Sep 6, 2019

Conversation

stephenxs
Copy link
Collaborator

- What I did
Fix sfp issue in reading qsfp_status

- How I did it
Move qsfp_status reading into try-block

- How to verify it
Test whether the sfp modules are read correctly.

- Description for the changelog

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

Stephen Sun added 2 commits August 27, 2019 06:12
There is a very low possibility that qsfp_status exists when opening it but doesn't when reading it a bit later. If this occurs an exception is raised.
However, this should be treated as "not presence" rather than causing an exception, which can be achieved by putting it into try block.
@stephenxs stephenxs marked this pull request as ready for review August 27, 2019 14:15
@stephenxs
Copy link
Collaborator Author

retest this, please

@jleveque
Copy link
Contributor

jleveque commented Sep 6, 2019

Retest broadcom please

@lguohan lguohan merged commit aa33644 into sonic-net:201811 Sep 6, 2019
@stephenxs stephenxs deleted the fix-get_presence branch September 6, 2019 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants