-
Notifications
You must be signed in to change notification settings - Fork 176
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
Implement get/set_lpmode API for SFF8472 #512
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
The lpmode is not supported by SFF8472
c0f5779
to
ba28902
Compare
Hi @prgeor could you please help to review this PR? |
@mihirpat1 can you please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving with a minor comment
@@ -37,7 +37,7 @@ def get_transceiver_info(self): | |||
if len > 0: | |||
cable_len = len | |||
cable_type = type | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@byu343 Please revert this
* Add get/set_lpmode API for SFF8472 The lpmode is not supported by SFF8472 * Add unittest for get/set_lpmode for SFF8472 --------- Co-authored-by: Andy Wong <andywong@arista.com>
Cherry-pick PR to 202405: #514 |
* Add get/set_lpmode API for SFF8472 The lpmode is not supported by SFF8472 * Add unittest for get/set_lpmode for SFF8472 --------- Co-authored-by: Andy Wong <andywong@arista.com>
Description
Implement get/set_lpmode API for SFF8472
Motivation and Context
The cli "sfputil show lpmode" depends on this implemenation for SFP+ ports on Arista platform.
How Has This Been Tested?
Run the cli "sfputil show lpmode" on Arista platform, and check the result is Off for SFP+ ports
Additional Information (Optional)
SFF8472 does not support setting lp mode, so both get_lpmode() and set_lpmode() is returned false. This is consistent with the existing implementation for SFF8436 in https://github.com/sonic-net/sonic-platform-common/blob/master/sonic_platform_base/sonic_xcvr/api/public/sff8436.py#L334, for the condition of "if not self.get_lpmode_support() or not self.get_power_override_support()"