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

Implement get/set_lpmode API for SFF8472 #512

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

byu343
Copy link

@byu343 byu343 commented Nov 6, 2024

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()"

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

3 participants