Skip to content

[SFP-Refactor] Fix vendor revision key issue#231

Merged
prgeor merged 1 commit intosonic-net:masterfrom
aravindmani-1:fix_vendor_key_issue
Dec 7, 2021
Merged

[SFP-Refactor] Fix vendor revision key issue#231
prgeor merged 1 commit intosonic-net:masterfrom
aravindmani-1:fix_vendor_key_issue

Conversation

@aravindmani-1
Copy link
Contributor

@aravindmani-1 aravindmani-1 commented Dec 6, 2021

Description

With new SFP refactor, hardware_rev is replaced with Vendor_rev key.
Made the changes in alignment with sonic-net/sonic-mgmt#4816

Motivation and Context

xcvrd may crash for platform vendors as hardware_rev key is used in place of vendor_rev key.

How Has This Been Tested?

Tested in DellEMC Z9332f platform.

Additional Information (Optional)

@aravindmani-1 aravindmani-1 changed the title [SFP-Refactor] Fix vendor key issue [SFP-Refactor] Fix vendor revision key issue Dec 6, 2021
@sujinmkang
Copy link
Collaborator

@aravindmani-1 and @prgeor can you please share the refactored sfp change which is related to this change?

@aravindmani-1
Copy link
Contributor Author

aravindmani-1 commented Dec 9, 2021

@sanmalho-git
Copy link

@aravindmani-1 and @prgeor - There are corresponding changes required in sonic-mgmt platform tests to accommodate this change. Specifically:

Could you please make the appropriate change in sonic-mgmt as well.

@aravindmani-1
Copy link
Contributor Author

@aravindmani-1 and @prgeor - There are corresponding changes required in sonic-mgmt platform tests to accommodate this change. Specifically:

Could you please make the appropriate change in sonic-mgmt as well.

sonic-net/sonic-mgmt#481 has been raised to handle it.

@prgeor
Copy link
Collaborator

prgeor commented Dec 23, 2021

@aravindmani-1 i think you meant this PR sonic-net/sonic-mgmt#4816

@aravindmani-1
Copy link
Contributor Author

@aravindmani-1 i think you meant this PR Azure/sonic-mgmt#4816

Yes.That's right.

JibinBao added a commit to JibinBao/sonic-mgmt that referenced this pull request Jan 19, 2022
wangxin pushed a commit to sonic-net/sonic-mgmt that referenced this pull request Jan 20, 2022
What is the motivation for this PR?
In test_transceiver_info the key of hardware_rev has been changed to vendor_rev.
According to these PRs(sonic-net/sonic-platform-daemons#231, sonic-net/sonic-utilities#1950), now only master branch support the key of vendor_rev. So, for other branches it still keeps the key of hardware_rev.

How did you do it?
For latest master release, use "vendor_rev" as transceiver info key.
For release in ["201911", "202012", "202106", "202111"], use "hardware_rev" as transceiver info key.

How did you verify/test it?
Run test_transceiver_info on different branches, for example: master, 202012.
@prgeor
Copy link
Collaborator

prgeor commented Jan 21, 2022

@qiluo-msft could you please cherry-pick this fix to 202012 to fix sonic-mgmt test failure https://dev.azure.com/mssonic/12b9cbf4-b1d3-4768-8e49-669345c32e5d/_apis/build/builds/65630/logs/22

@vdahiya12
Copy link
Contributor

Removing the label as its not required

SuvarnaMeenakshi pushed a commit to sonic-net/sonic-snmpagent that referenced this pull request Feb 1, 2022
- What I did

In the TRANSCEIVER_INFO table of STATE_DB, the key of transceiver reversion was changed from "hardware_rev" to "vendor_rev", detail info please refer to PR sonic-net/sonic-platform-daemons#231

RFC2737 implementation needs to be updated with the new key name in order to get the correct info from the state DB

- How I did it

Update the key name from "hardware_rev" to "vendor_rev", update the unit test cases.

- How to verify it

Run the community SNMP test.

- Description for the changelog
@Staphylo
Copy link
Contributor

Staphylo commented May 3, 2022

@aravindmani-1 it seems that this PR is missing on 202111
I tried out the latest available build and got a Traceback on xcvrd.
Could it be cherry-picked?

@aravindmani-1
Copy link
Contributor Author

@aravindmani-1 it seems that this PR is missing on 202111 I tried out the latest available build and got a Traceback on xcvrd. Could it be cherry-picked?

@prgeor , @qiluo-msft Could you please help to cherry pick this PR on 202111 branch?.

ssithaia-ebay pushed a commit to ssithaia-ebay/sonic-snmpagent that referenced this pull request May 23, 2025
- What I did

In the TRANSCEIVER_INFO table of STATE_DB, the key of transceiver reversion was changed from "hardware_rev" to "vendor_rev", detail info please refer to PR sonic-net/sonic-platform-daemons#231

RFC2737 implementation needs to be updated with the new key name in order to get the correct info from the state DB

- How I did it

Update the key name from "hardware_rev" to "vendor_rev", update the unit test cases.

- How to verify it

Run the community SNMP test.

- Description for the changelog
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.

7 participants