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

[202012] [Arista] Add Arista eeprom platform API method to update database #8914

Merged
merged 1 commit into from
Oct 8, 2021

Conversation

zzhiyuan
Copy link
Contributor

@zzhiyuan zzhiyuan commented Oct 6, 2021

Why I did it

Sujin noticed that Arista eeprom platform API cannot update the redis database. Although Arista and Guohan believe that database update logic should be part of the daemon, it is easy enough to implement the fix for Arista for now.

How I did it

Made Arista eeprom platform API inherit from TlvInfoDecoder, then write Arista's own visit_eeprom method.

How to verify it

I can go into redis-cli and print the key and values for the syseeprom:
127.0.0.1:6379> select 6
OK
127.0.0.1:6379[6]> hgetall EEPROM_INFO|Checksum
"Valid"
"1"
127.0.0.1:6379[6]> hgetall EEPROM_INFO|0xe
"Name"
"SerialNumber"
"Len"
"11"
"Value"
"SSJ17432422"
127.0.0.1:6379[6]> hgetall EEPROM_INFO|0x3
"Name"
"SKU"
"Len"
"14"
"Value"
"DCS-7260CX3-64"

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

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

@sujinmkang sujinmkang merged commit 6a6b81b into sonic-net:202012 Oct 8, 2021
sujinmkang added a commit that referenced this pull request Oct 12, 2021
yxieca pushed a commit that referenced this pull request Oct 12, 2021
sujinmkang pushed a commit that referenced this pull request Oct 14, 2021
…#8963)

Co-authored-by: Zhi Yuan (Carl) Zhao <zyzhao@arista.com>
Why I did it
The previous PR #8914 was reverted due to crashing the 202012 syseepromd.

How I did it
Tested the 202012 image with change and fixed the disparity between master and 202012.

How to verify it
Run the built image on the dut and syseepromd will not crash, and in redis-cli can fetch the eeprom information.
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.

[platform_tests][PMONdaemon]test_syseepromd.py::test_pmon_syseepromd_running_status FAILED on arista
2 participants