-
Notifications
You must be signed in to change notification settings - Fork 270
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
base: master
Are you sure you want to change the base?
Conversation
Add SwitchPoe to vslib Add a python script to spawn the PoE syncd process Signed-off-by: Serhiy Boiko <[email protected]>
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)); |
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
Add PoE virtual switch implementation to vslib
Add a python script to spawn the PoE syncd process