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

sonic_utilities: Support for DOM Threshold values for EEPROM dump #545

Merged
merged 4 commits into from
Jul 30, 2019

Conversation

sridhar-ravindran
Copy link
Contributor

- What I did
Added support to dump Dom Threshold values along with other dom values as per EEPROM sff8436 standard.
- How I did it
Read the eeprom, save the redis transceiver_dom table with threshold values.

- How to verify it
sfpshow eeprom --dom
- Previous command output (if the output of a command-line utility has changed)
Ethernet124: SFP EEPROM detected
Connector: MPOx12
Encoding: 64B66B
Extended Identifier: Power Class 1(1.5W max)
Extended RateSelect Compliance: QSFP+ Rate Select Version 1
Identifier: QSFP+ or later
Length OM3(2m): 50
Nominal Bit Rate(100Mbs): 103
Specification compliance:
10/40G Ethernet Compliance Code: 40GBASE-SR4
Vendor Date Code(YYYY-MM-DD Lot): 2010-09-01
Vendor Name: AVAGO
Vendor OUI: 00-17-6a
Vendor PN: AFBR-79E4Z-D
Vendor Rev: 01
Vendor SN: QA340092
ChannelMonitorValues:
RX1Power: -16.3827dBm
RX2Power: -infdBm
RX3Power: -15.5284dBm
RX4Power: -infdBm
TX1Bias: 5.9720mA
TX2Bias: 5.3740mA
TX3Bias: 5.3800mA
TX4Bias: 6.0540mA
ModuleMonitorValues:
Temperature: 32.4688C
Vcc: 3.3458Volts

- New command output (if the output of a command-line utility has changed)
Ethernet124: SFP EEPROM detected
Connector: MPOx12
Encoding: 64B66B
Extended Identifier: Power Class 1(1.5W max)
Extended RateSelect Compliance: QSFP+ Rate Select Version 1
Identifier: QSFP+ or later
Length OM3(2m): 50
Nominal Bit Rate(100Mbs): 103
Specification compliance:
10/40G Ethernet Compliance Code: 40GBASE-SR4
Vendor Date Code(YYYY-MM-DD Lot): 2010-09-01
Vendor Name: AVAGO
Vendor OUI: 00-17-6a
Vendor PN: AFBR-79E4Z-D
Vendor Rev: 01
Vendor SN: QA340092
ChannelMonitorValues:
RX1Power: -16.3827dBm
RX2Power: -infdBm
RX3Power: -15.5284dBm
RX4Power: -infdBm
TX1Bias: 5.9720mA
TX2Bias: 5.3740mA
TX3Bias: 5.3800mA
TX4Bias: 6.0540mA
ChannelThresholdValues:
RxPowerHighAlarm : 3.4001dBm
RxPowerHighWarning: 2.4000dBm
RxPowerLowAlarm : -13.5067dBm
RxPowerLowWarning : -9.5001dBm
TxBiasHighAlarm : 10.0000mA
TxBiasHighWarning : 9.5000mA
TxBiasLowAlarm : 0.5000mA
TxBiasLowWarning : 1.0000mA
ModuleMonitorValues:
Temperature: 32.4688C
Vcc: 3.3458Volts
ModuleThresholdValues:
TempHighAlarm : 75.0000C
TempHighWarning: 70.0000C
TempLowAlarm : -5.0000C
TempLowWarning : 0.0000C
VccHighAlarm : 3.6300Volts
VccHighWarning : 3.4650Volts
VccLowAlarm : 2.9700Volts
VccLowWarning : 3.1349Volts

-->

@sridhar-ravindran
Copy link
Contributor Author

sridhar-ravindran commented May 29, 2019

@sridhar-ravindran
Copy link
Contributor Author

sridhar-ravindran commented May 29, 2019

@jleveque
Copy link
Contributor

@keboliu: Please review

@keboliu
Copy link
Collaborator

keboliu commented Jun 4, 2019

@keboliu: Please review

@sridhar-ravindran @jleveque, please check the comments I raised in the two dependencies PRs.

@sridhar-ravindran
Copy link
Contributor Author

Hi @keboliu

I have rebased to latest master. Please review.

Thanks
Sridhar.R

@sridhar-ravindran
Copy link
Contributor Author

Hi @keboliu @jleveque
Could you please review and approve this . This is also needed for DOM Threshold values.
Thanks
Sridhar.R

@jleveque
Copy link
Contributor

Retest this please

1 similar comment
@jleveque
Copy link
Contributor

Retest this please

@jleveque
Copy link
Contributor

@sridhar-ravindran: I'm sorry, but there are now conflicts. Can you please fix them?

@jleveque
Copy link
Contributor

Retest this please

1 similar comment
@jleveque
Copy link
Contributor

Retest this please

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.

3 participants