Skip to content

Conversation

@rthakur33
Copy link
Contributor

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"} }

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"} }

Signed-off-by: Rahul Thakur <rahul.thakur@iopsys.eu>
@wryun
Copy link

wryun commented Sep 30, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants