-
Notifications
You must be signed in to change notification settings - Fork 664
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
[SfpUtil] sfp eeprom with option dom is not working on Xcvrs with flat memory #3385
Merged
Conversation
This file contains 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
…t memory Signed-off-by: Mihir Patel <[email protected]>
mihirpat1
force-pushed
the
sfputil_dom_flat_mem_fix
branch
from
June 25, 2024 08:18
457b2b8
to
fb1ac29
Compare
vivekrnv
approved these changes
Jul 17, 2024
prgeor
reviewed
Jul 18, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@prgeor PR looks OK, but its in draft
prgeor
approved these changes
Jul 18, 2024
mssonicbld
pushed a commit
to mssonicbld/sonic-utilities
that referenced
this pull request
Jul 19, 2024
…t memory (sonic-net#3385) Signed-off-by: Mihir Patel <[email protected]>
Cherry-pick PR to 202405: #3434 |
mssonicbld
pushed a commit
that referenced
this pull request
Jul 19, 2024
…t memory (#3385) Signed-off-by: Mihir Patel <[email protected]>
mssonicbld
added
Included in 202405 Branch
and removed
Created PR to 202405 Branch
labels
Jul 19, 2024
Merged
8 tasks
8 tasks
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.
What I did
fixes sonic-net/sonic-buildimage#19032
sfputil show eeprom -d -p Ethernet0
command is failing for CMIS flat memory modules with a traceback.MSFT ADO - 28363057
How I did it
After sonic-net/sonic-platform-common#397 was merged, the below line was added
self.vdm_dict = self.get_vdm(self.vdm.VDM_REAL_VALUE)
.However, for certain CMIS flat memory modules,
self.vdm
could beNone
due to https://github.com/sonic-net/sonic-platform-common/blob/8e673d5cfcb9ee184950f4fb1d32f999cbb39735/sonic_platform_base/sonic_xcvr/api/public/cmis.py#L31Hence, since such flat memory modules do not have DOM information, we need to skip displaying DOM information for such modules (similar to the fix done via sonic-net/sonic-platform-daemons#458).
How to verify it
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)