-
Notifications
You must be signed in to change notification settings - Fork 669
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
Collect module EEPROM data in dump #3009
Conversation
@Junchao-Mellanox could you please update the command ref doc https://github.com/sonic-net/sonic-utilities/blob/master/doc/Command-Reference.md |
Hi @prgeor , I checked command reference doc, it mentioned:
So, it seems that we don't add doc for sfputil. |
@Junchao-Mellanox we can remove that statement. Recently we added sfputil firmware download command to this doc. It will be good to capture all CLIs in this Repo in one doc |
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.
@Junchao-Mellanox I would suggest to enhance existing APIs: eeprom_hexdump_sff8472() to eeprom_hexdump_sff8472(port, physical_port, pages
). Let the caller take care of what pages or list of pages to pass based upon if the cable support only flat memory, if cable is CMIS, SFF etc.. This way we can reuse existing API. You can take approach of is_xcvr_optical() (see sonic-mgmt repo) to know if SFP+ is copper or not.
Hi @prgeor ,
I understand your point is to reuse existing code and keep the design clean. I totally agree with that. So, how about this:
|
@prgeor could you please help to review feedback changes? |
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.
@mihirpat1 could you also please review?
@prgeor @mihirpat1 could you please sign-off? |
@Junchao-Mellanox please check cherry-pick conflict |
* Collect module EEPROM data in dump
* Collect module EEPROM data in dump
* Collect module EEPROM data in dump
sonic-net#3009 breaks the number base rule, treats the page number CLI input as decimal rather than hex, this is used to fix it. Signed-off-by: Yuanzhe, Liu <[email protected]>
sonic-net#3009 breaks the number base rule, treats the page number CLI input as decimal rather than hex, this is used to fix it. Signed-off-by: Yuanzhe, Liu <[email protected]>
sonic-net#3009 breaks the number base rule, treats the page number CLI input as decimal rather than hex, this is used to fix it. Signed-off-by: Yuanzhe, Liu <[email protected]>
sonic-net#3009 breaks the number base rule, treats the page number CLI input as decimal rather than hex, this is used to fix it. it also containes a redundancy function definition, so remove it. Signed-off-by: Yuanzhe, Liu <[email protected]>
sonic-net#3009 breaks the number base rule, treats the page number CLI input as decimal rather than hex, this is used to fix it. it also containes a redundancy function definition, so remove it. Signed-off-by: Yuanzhe, Liu <[email protected]>
sonic-net#3009 breaks the number base rule, treats the page number CLI input as decimal rather than hex, this is used to fix it. it also containes a redundancy function definition, so remove it. Signed-off-by: Yuanzhe, Liu <[email protected]>
sonic-net#3009 breaks the number base rule, treats the page number CLI input as decimal rather than hex, this is used to fix it. it also containes a redundancy function definition, so remove it. Signed-off-by: Yuanzhe, Liu <[email protected]>
sonic-net#3009 breaks the number base rule, treats the page number CLI input as decimal rather than hex, this is used to fix it. it also containes a redundancy function definition, so remove it. Signed-off-by: Yuanzhe, Liu <[email protected]>
What I did
Add a new CLI sfputil eeprom-hexdump-all to dump all pages for module
Support collecting module EEPROM in show techsupport command
How I did it
HLD: sonic-net/SONiC#1476
How to verify it
Manual test
Unit test
Regression test
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)