Skip to content

[vslib] Add support for PoE feature #1404

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SerhiyBoikoPLV
Copy link

Add PoE virtual switch implementation to vslib
Add a python script to spawn the PoE syncd process

Copy link

linux-foundation-easycla bot commented Jul 19, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: SerhiyBoikoPLV / name: Serhiy Boiko (304ea87)

@kcudnik
Copy link
Collaborator

kcudnik commented Jul 24, 2024

Please write some unittests to satisfy code coverage

@SerhiyBoikoPLV SerhiyBoikoPLV force-pushed the feat_poe branch 2 times, most recently from 067dff6 to e68d747 Compare July 25, 2024 13:04
{
attr.id = SAI_POE_PORT_ATTR_POWER_LIMIT;
attr.value.u32 = 0;
CHECK_STATUS(set(SAI_OBJECT_TYPE_POE_PORT, object_id, &attr));

Choose a reason for hiding this comment

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

This is just for my understanding,

I was under the impression that this code would eventually interact with PoE controller, could you point me to code where that happens.

Copy link
Author

Choose a reason for hiding this comment

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

This is an implementation for the virtual switch. There is no poe cotroller to communicate with, so we only report dummy data.
When vendors are writing sai for their physical devices and handling SAI_POE_* attributes then they will be communicating with the poe controller.

Copy link

@matiAlfaro matiAlfaro left a comment

Choose a reason for hiding this comment

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

LGTM

kcudnik
kcudnik previously approved these changes Oct 10, 2024
@SerhiyBoikoPLV
Copy link
Author

@kcudnik , could you please approve the semgrep workflow? Do you have any other comments that prevent this PR from being merged?

return SAI_STATUS_SUCCESS;
}

sai_status_t SwitchPoE::refresh_read_only(

Check warning

Code scanning / CodeQL

Poorly documented large function Warning

Poorly documented function: fewer than 2% comments for a function of 103 lines.
Add SwitchPoe to vslib
Add a python script to spawn the PoE syncd process
Add PoE unittests
Update aspell for POE

Signed-off-by: Serhiy Boiko <[email protected]>
@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.

5 participants