Skip to content

[Mellanox] fix sfp issue in reading qsfp_status#3386

Merged
lguohan merged 3 commits intosonic-net:201811from
stephenxs:fix-get_presence
Sep 6, 2019
Merged

[Mellanox] fix sfp issue in reading qsfp_status#3386
lguohan merged 3 commits intosonic-net:201811from
stephenxs:fix-get_presence

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