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 |
prgeor
left a comment
There was a problem hiding this comment.
@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? |
prgeor
left a comment
There was a problem hiding this comment.
@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 <yualiu@nvidia.com>
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 <yualiu@nvidia.com>
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 <yualiu@nvidia.com>
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 <yualiu@nvidia.com>
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 <yualiu@nvidia.com>
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 <yualiu@nvidia.com>
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 <yualiu@nvidia.com>
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 <yualiu@nvidia.com>
* Collect module EEPROM data in dump
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)