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

[Mellanox] Remove eeprom cache file when first time init eeprom object #6071

Merged
merged 2 commits into from
Dec 1, 2020

Conversation

Junchao-Mellanox
Copy link
Collaborator

- Why I did it

EEPROM cache file is not refreshed after install a new ONIE version even if the eeprom data is updated. The current Eeprom class always try to read from the cache file when the file exists. The PR is aimed to fix it.

- How I did it

When eeprom object init, always remove the cache file and read eeprom data from hardware.

- How to verify it

Run platform related regression test cases

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@Junchao-Mellanox
Copy link
Collaborator Author

retest vs please

@jleveque jleveque merged commit 6399258 into sonic-net:master Dec 1, 2020
@keboliu
Copy link
Collaborator

keboliu commented Dec 2, 2020

@abdosi would you please help to cherry-pick?

@Junchao-Mellanox Junchao-Mellanox deleted the fix_eeprom_cache branch December 3, 2020 05:30
abdosi pushed a commit that referenced this pull request Dec 4, 2020
#6071)

EEPROM cache file is not refreshed after install a new ONIE version even if the eeprom data is updated. The current Eeprom class always try to read from the cache file when the file exists. The PR is aimed to fix it.
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
sonic-net#6071)

EEPROM cache file is not refreshed after install a new ONIE version even if the eeprom data is updated. The current Eeprom class always try to read from the cache file when the file exists. The PR is aimed to fix it.
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