Skip to content

Support new API sfp.dump_eeprom#404

Closed
Junchao-Mellanox wants to merge 3 commits intosonic-net:masterfrom
Junchao-Mellanox:master_debug_tool
Closed

Support new API sfp.dump_eeprom#404
Junchao-Mellanox wants to merge 3 commits intosonic-net:masterfrom
Junchao-Mellanox:master_debug_tool

Conversation

@Junchao-Mellanox
Copy link
Copy Markdown
Contributor

@Junchao-Mellanox Junchao-Mellanox commented Oct 10, 2023

Description

Support new platform API dump EEPROM which would dump module EEPROM in hex format

Motivation and Context

HLD: sonic-net/SONiC#1476

How Has This Been Tested?

Manual test and regression test.

Additional Information (Optional)

return None

def _get_valid_eeprom_pages(self):
return (0, 1, 2, 16, 17) if not self.is_flat_memory() else (0,)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Junchao-Mellanox why only these pages?

@prgeor
Copy link
Copy Markdown
Collaborator

prgeor commented Oct 13, 2023

@Junchao-Mellanox please make use of existing CLI sfputil show eeprom-hexdump. You can get the Sfp type cmis,sff ...etc and have a hardcoded list in sfputil for the interested pages for each sfp type

@Junchao-Mellanox
Copy link
Copy Markdown
Contributor Author

Close this as it is no longer needed

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.

2 participants