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

SFP-Refactor: Vendor revision is not displayed properly #1950

Merged
merged 3 commits into from
Dec 6, 2021

Conversation

aravindmani-1
Copy link
Contributor

What I did

Modified vendor revision that displayed hardware revision

How I did it

Modified SFP plugins to display correct fields

How to verify it

Check sfpshow/sfputil eeprom output

Previous command output (if the output of a command-line utility has changed)

root@SONIC:~# sfputil show eeprom -p Ethernet160
Ethernet160: SFP EEPROM detected
Application Advertisement: N/A
Connector: No separable connector
Encoding: N/A
Extended Identifier: Power Class 6 (12.0W Max)
Extended RateSelect Compliance: N/A
Identifier: QSFP-DD Double Density 8X Pluggable Transceiver
Length Cable Assembly(m): 10.0
Nominal Bit Rate(100Mbs): 0
Specification compliance: active_cable_media_interface
Vendor Date Code(YYYY-MM-DD Lot): 2020-01-07
Vendor Name: DELL EMC
Vendor OUI: ac-4a-fe
Vendor PN: 9GMDY
Vendor Rev: 1.1
Vendor SN: CN04HQ000130034

New command output (if the output of a command-line utility has changed)

root@SONIC:~# sfputil show eeprom -p Ethernet160
Ethernet160: SFP EEPROM detected
Application Advertisement: N/A
Connector: No separable connector
Encoding: N/A
Extended Identifier: Power Class 6 (12.0W Max)
Extended RateSelect Compliance: N/A
Identifier: QSFP-DD Double Density 8X Pluggable Transceiver
Length Cable Assembly(m): 10.0
Nominal Bit Rate(100Mbs): 0
Specification compliance: active_cable_media_interface
Vendor Date Code(YYYY-MM-DD Lot): 2020-01-07
Vendor Name: DELL EMC
Vendor OUI: ac-4a-fe
Vendor PN: 9GMDY
Vendor Rev: A0
Vendor SN: CN04HQ000130034

@aravindmani-1 aravindmani-1 changed the title SFP: Vendor revision is not displayed properly SFP-Refactor: Vendor revision is not displayed properly Nov 30, 2021
@prgeor prgeor self-assigned this Nov 30, 2021
@prgeor
Copy link
Contributor

prgeor commented Dec 1, 2021

@keboliu can you please review

@prgeor
Copy link
Contributor

prgeor commented Dec 1, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prgeor
Copy link
Contributor

prgeor commented Dec 6, 2021

@aravindmani-1 can you also attach the output of "sfputil show eeprom" for QSFP28/QSFP+ ?

@prgeor prgeor merged commit 656ade1 into sonic-net:master Dec 6, 2021
@aravindmani-1 aravindmani-1 deleted the sfp_enh branch December 10, 2021 02:14
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.
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.

2 participants