Skip to content
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

Fixing serial number read to get from DB if it is populated #1580

Merged
merged 3 commits into from
May 5, 2021

Conversation

dgsudharsan
Copy link
Collaborator

What I did

Modified show version command to pick serial number from STATE_DB if it was populated instead of getting it from EEPROM.

How I did it

Check state_db to see if serial number EEPROM section is populated. If yes use the data from DB. If not, read it from the decode-syseeprom

How to verify it

Verify running 'show version' with and without pmon running to validate both scenarios, since eepromd in pmon populates the EEPROM table in state_db

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)

show/main.py Show resolved Hide resolved
show/main.py Outdated Show resolved Hide resolved
show/main.py Outdated Show resolved Hide resolved
@jleveque
Copy link
Contributor

jleveque commented May 4, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

@jleveque would you like this enhancement to be in 202012 as well? if so, please add a label.
I believe it can help to run platform API tests when pmon is not running.

@jleveque jleveque merged commit fff4051 into sonic-net:master May 5, 2021
daall pushed a commit that referenced this pull request May 5, 2021
#### What I did
Modified show version command to pick serial number from STATE_DB if it was populated instead of getting it from EEPROM.

#### How I did it
Check state_db to see if serial number EEPROM section is populated. If yes use the data from DB. If not, read it from the decode-syseeprom
gitsabari pushed a commit to gitsabari/sonic-utilities that referenced this pull request Jun 15, 2021
…t#1580)

#### What I did
Modified show version command to pick serial number from STATE_DB if it was populated instead of getting it from EEPROM.

#### How I did it
Check state_db to see if serial number EEPROM section is populated. If yes use the data from DB. If not, read it from the decode-syseeprom
@dgsudharsan dgsudharsan deleted the version_sn_fix branch March 9, 2023 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants