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

[decode-syseeprom] Fix setting use_db based on support_eeprom_db #2270

Merged
merged 2 commits into from
Aug 16, 2022

Conversation

byu343
Copy link
Contributor

@byu343 byu343 commented Jul 18, 2022

What I did

Set use_db after support_eeprom_db is determined. The issue was affecting platform Arista platforms, where db is not used for syseeprom.

How I did it

How to verify it

Verified on dut by running "show platform syseeprom" and "decode-syseeprom -d"

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)

lizhuhuams
lizhuhuams previously approved these changes Jul 29, 2022
Copy link

@lizhuhuams lizhuhuams left a comment

Choose a reason for hiding this comment

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

this works!

Please add Unit Test other wise this cannot be merged.

Please refer to the following link to see how Unit Tests can be added.
https://github.com/Azure/sonic-utilities/pull/2189/files

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 3, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

@lgtm-com
Copy link

lgtm-com bot commented Aug 3, 2022

This pull request fixes 1 alert when merging 1ccd774 into ecb9136 - view on LGTM.com

fixed alerts:

  • 1 for Unused local variable

Copy link

@lizhuhuams lizhuhuams left a comment

Choose a reason for hiding this comment

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

thanks1

@vdahiya12
Copy link
Contributor

Can you please remove the LGTM @byu343

@byu343
Copy link
Contributor Author

byu343 commented Aug 11, 2022

Can you please remove the LGTM @byu343

Do you mean the "LGTM analysis: Python"? It looks passed.

@sujinmkang sujinmkang merged commit 20c6d18 into sonic-net:master Aug 16, 2022
yxieca pushed a commit that referenced this pull request Sep 1, 2022
What I did
Set use_db after support_eeprom_db is determined. The issue was affecting platform Arista platforms, where db is not used for syseeprom.

How to verify it
Verified on dut by running "show platform syseeprom" and "decode-syseeprom -d"
dprital added a commit to dprital/sonic-buildimage that referenced this pull request Sep 7, 2022
Update sonic-utilities submodule pointer to include the following:
* [route_check]: Ignore standalone tunnel routes (sonic-net#2325) ([sonic-net#2346](sonic-net/sonic-utilities#2346))
* [VRF]Adding CLI checks to ensure Vrf is valid in interface bind and static route commands ([sonic-net#2333](sonic-net/sonic-utilities#2333))
* Subinterface vrf bind issue fix ([sonic-net#2211](sonic-net/sonic-utilities#2211))
* [decode-syseeprom] Fix setting use_db based on support_eeprom_db ([sonic-net#2270](sonic-net/sonic-utilities#2270))
* Fix vrf UT failed issue ([sonic-net#2309](sonic-net/sonic-utilities#2309))

Signed-off-by: dprital <drorp@nvidia.com>
yxieca pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Sep 8, 2022
Update sonic-utilities submodule pointer to include the following:
* [route_check]: Ignore standalone tunnel routes (#2325) ([#2346](sonic-net/sonic-utilities#2346))
* [VRF]Adding CLI checks to ensure Vrf is valid in interface bind and static route commands ([#2333](sonic-net/sonic-utilities#2333))
* Subinterface vrf bind issue fix ([#2211](sonic-net/sonic-utilities#2211))
* [decode-syseeprom] Fix setting use_db based on support_eeprom_db ([#2270](sonic-net/sonic-utilities#2270))
* Fix vrf UT failed issue ([#2309](sonic-net/sonic-utilities#2309))

Signed-off-by: dprital <drorp@nvidia.com>

Signed-off-by: dprital <drorp@nvidia.com>
preetham-singh pushed a commit to preetham-singh/sonic-utilities that referenced this pull request Nov 21, 2022
…ic-net#2270)

What I did
Set use_db after support_eeprom_db is determined. The issue was affecting platform Arista platforms, where db is not used for syseeprom.

How to verify it
Verified on dut by running "show platform syseeprom" and "decode-syseeprom -d"
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.

6 participants