-
Notifications
You must be signed in to change notification settings - Fork 174
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
power: add ubus NetworkPowerPort #1409
Conversation
I don't understand how this fails since I haven't touched the problematic files:
|
Saw this today with an new pylint version |
Yep thats the new pylint version. See #1406 |
Successfully tested on real hardware. |
How do I regenerate the Man pages? |
There is a Makefile inside the man folder which requires the python |
|
Ah, yeah this is only required if you touch the |
In that case please let me know if anything else is needed prior a merge :) |
The docstring seems to have the wrong format, thats why the CI is failing. |
Using PoE switches as power supply is convenient since a switch is needed in many cases anyway and with the right adapter most embedded devices can be powered. OpenWrt offers `ubus` as micro bus system to control the system, including PoE ports on switches. This commit adds a driver to handle PoE switches running OpenWrt. An ACL example is given below: ```shell root@switch:~# cat /usr/share/rpcd/acl.d/unauthenticated.json { "unauthenticated": { "description": "Access controls for unauthenticated requests", "read": { "ubus": { "session": [ "access", "login" ], "poe": [ "info", "manage" ] } } } } ``` Signed-off-by: Paul Spooren <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1409 +/- ##
========================================
- Coverage 62.2% 52.7% -9.5%
========================================
Files 164 165 +1
Lines 12201 12216 +15
========================================
- Hits 7590 6439 -1151
- Misses 4611 5777 +1166 ☔ View full report in Codecov by Sentry. |
I added the specific example to the commit message to make |
Description
Using PoE switches as power supply is convenient since a switch is needed in many cases anyway and with the right adapter most embedded devices can be powered.
OpenWrt offers
ubus
as micro bus system to control the system, including PoE ports on switches.This commit adds a driver to handle PoE switches running OpenWrt.
Checklist