ethmngr: add ruleng recipe for ethport hotplug event

hotplug event generated now from ruleng recipe based on the
network.device event
This commit is contained in:
Rahul Thakur 2024-03-18 15:09:00 +05:30 committed by Sukru Senli
parent edd89d2aaf
commit 53c8950947

View file

@ -0,0 +1,20 @@
{
"ethport_update": {
"if" : [
{
"event": "network.device"
}
],
"then" : [
{
"cli": "/sbin/hotplug-call ethernet",
"envs": {
"PORT": "&network.device->ifname",
"LINK": "&network.device->link"
},
"timeout": 1
}
]
}
}