Onboard show platform syseeprom command#216
Merged
Sreevanich16 merged 5 commits intoAzure:kubesonicfrom May 5, 2026
Merged
Conversation
added 2 commits
April 30, 2026 07:51
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
meghna-mishra
approved these changes
May 5, 2026
This file contains hidden or 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
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.
MSFT ADO-37750120
Why I did it
Onboarded show platform syseeprom command to gNMI server system eeprom data can be queried programmatically via gNMI Get RPCs.
How I did it
The show platform syseeprom command reads EEPROM data from two paths: for most platforms, it queries EEPROM_INFO from STATE_DB (populated by syseepromd) and assembles a structured JSON with TLV header, entries, and checksum; for platforms without DB support (Arista), it runs decode_eeprom() via nsenter and wraps the raw vendor-specific text in {"eeprom_raw": "..."}. Platform detection uses regex patterns against the platform name to route between the DB path, the nsenter fallback, or an error for unsupported platforms like KVM.
How to verify it
Mellanox device
CLI output-
gNMI output
Arista device-
CLI output
gNMI output - returning raw string here for below reasons-
-> The output here is fetched from platform apis(not db) which can be any format, so merely parsing it based on newline characters/colons may break.
-> The raw string can be returned as-is, since the client already incorporates an extra level of parsing logic to handle it appropriately.
Which release branch to backport (provide reason below if selected)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)