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

Convert the tx/rx power unit to the dBm unit #377

Merged
merged 8 commits into from
Aug 17, 2023

Conversation

chiourung
Copy link
Contributor

Description

The tx/rx power unit in the eeprom is mW, and the tx/rx power unit for the API is dBm. It should be converted to the dBm in get_transceiver_bulk_status().


Signed-off-by: chiourung_huang chiourung_huang@edge-core.com

…transceiver_bulk_status().

The tx/rx power unit in the eeprom is mW, and the tx/rx power unit for the API is dBm.
It should be converted to the dBm in get_transceiver_bulk_status().

Signed-off-by: chiourung_huang <chiourung_huang@edge-core.com>
  the content of rx_power[x] or tx_power[x] will be "N/A"
prgeor
prgeor previously approved these changes Aug 8, 2023
@prgeor prgeor added the CMIS label Aug 8, 2023
@prgeor
Copy link
Collaborator

prgeor commented Aug 8, 2023

@chiourung can you add unit test for code-coverage?

Copy link
Contributor

@mihirpat1 mihirpat1 left a comment

Choose a reason for hiding this comment

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

Can you please add testcases to improve code coverage for the changeset since the PR check is failing due to this currently.

@chiourung
Copy link
Contributor Author

Can you please add testcases to improve code coverage for the changeset since the PR check is failing due to this currently.

Done

@chiourung
Copy link
Contributor Author

@chiourung can you add unit test for code-coverage?

Done

@prgeor prgeor merged commit 1988b37 into sonic-net:master Aug 17, 2023
4 checks passed
@prgeor
Copy link
Collaborator

prgeor commented Aug 17, 2023

@yxieca @StormLiangMS can you cherry pick this fix to 202305 and 202205

@mihirpat1
Copy link
Contributor

@yxieca @StormLiangMS can you cherry pick this fix to 202305 and 202205

The corresponding ADO is 15934138

StormLiangMS pushed a commit that referenced this pull request Sep 3, 2023
* JIRA-SONIC-7072: Convert the tx/rx power unit to the dBm unit in get_transceiver_bulk_status().

The tx/rx power unit in the eeprom is mW, and the tx/rx power unit for the API is dBm.
It should be converted to the dBm in get_transceiver_bulk_status().

Signed-off-by: chiourung_huang <chiourung_huang@edge-core.com>


---------

Signed-off-by: chiourung_huang <chiourung_huang@edge-core.com>
Co-authored-by: Prince George <45705344+prgeor@users.noreply.github.com>
yxieca pushed a commit that referenced this pull request Sep 6, 2023
* JIRA-SONIC-7072: Convert the tx/rx power unit to the dBm unit in get_transceiver_bulk_status().

The tx/rx power unit in the eeprom is mW, and the tx/rx power unit for the API is dBm.
It should be converted to the dBm in get_transceiver_bulk_status().

Signed-off-by: chiourung_huang <chiourung_huang@edge-core.com>


---------

Signed-off-by: chiourung_huang <chiourung_huang@edge-core.com>
Co-authored-by: Prince George <45705344+prgeor@users.noreply.github.com>
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.

5 participants