mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
board/netconf: Define standard behavior for port LEDs
By default, assume that any LED with the function "tp", "sfp" or "port" is attached to either an Ethernet PHY or MAC, with support for offloading the "netdev" trigger. Use green LEDs to indicate link/activity. Disable any yellow LEDs for now, later on we can add alarm indications etc. to these.
This commit is contained in:
committed by
Joachim Wiberg
parent
6ce7f01d64
commit
a4d02630c9
@@ -29,6 +29,21 @@
|
||||
},
|
||||
|
||||
"output": {
|
||||
"led-group": {
|
||||
"port-link-act": {
|
||||
"match": ["*:green:tp", "*:green:sfp", "*:green:port" ],
|
||||
|
||||
"rules": [
|
||||
{ "if": "true", "then": { "trigger": "netdev", "link": 1, "rx": 1, "tx": 1 } }
|
||||
]
|
||||
},
|
||||
"port-alarm": {
|
||||
"match": ["*:yellow:tp", "*:yellow:sfp", "*:yellow:port" ],
|
||||
|
||||
"rules": [
|
||||
]
|
||||
}
|
||||
},
|
||||
"led": {
|
||||
"red:status": {
|
||||
"rules": [
|
||||
|
||||
Reference in New Issue
Block a user