Skip to content
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

device: add ubus event for link state change #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 <[email protected]>
@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