netifd icon indicating copy to clipboard operation
netifd copied to clipboard

device: add ubus event for link state change

Open rthakur33 opened this issue 1 year ago • 1 comments

Add a ubus event network.device for link state change to generate an event when the link goes up and down.

The event looks as follows: { "network.device": {"ifname":"eth3","link":"down"} }

rthakur33 avatar Mar 20 '24 06:03 rthakur33

This would be really useful, particularly since if you naively ubus subscribe to an object (the other way to get link info) you might lose the subscription if netifd decides to create a new object with the same name.

wryun avatar Sep 30 '24 00:09 wryun