-
Notifications
You must be signed in to change notification settings - Fork 308
[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
base: master
Are you sure you want to change the base?
Conversation
|
Please write some unittests to satisfy code coverage |
067dff6
to
e68d747
Compare
{ | ||
attr.id = SAI_POE_PORT_ATTR_POWER_LIMIT; | ||
attr.value.u32 = 0; | ||
CHECK_STATUS(set(SAI_OBJECT_TYPE_POE_PORT, object_id, &attr)); |
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.
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.
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.
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.
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.
LGTM
@kcudnik , could you please approve the semgrep workflow? Do you have any other comments that prevent this PR from being merged? |
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]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Add PoE virtual switch implementation to vslib
Add a python script to spawn the PoE syncd process