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

[vslib] Add support for PoE feature #1404

Open
wants to merge 5 commits 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.

syncd/SaiSwitch.cpp Outdated Show resolved Hide resolved
vslib/SwitchConfig.cpp Outdated Show resolved Hide resolved
vslib/SwitchConfig.h Outdated Show resolved Hide resolved
Add SwitchPoe to vslib
Add a python script to spawn the PoE syncd process

Signed-off-by: Serhiy Boiko <[email protected]>
@kcudnik
Copy link
Collaborator

kcudnik commented Jul 24, 2024

Please write some unittests to satisfy code coverage

SAI_SWITCH_ATTR_POE_DEVICE_LIST is not readonly, so
it is not handled by refresh_read_only().

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

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.

4 participants