Catch interface ip address assignment event
Alexander Rumyantsev
alexander at rumyantsev.com
Tue Oct 22 12:57:38 UTC 2024
Hello!
What is the proper way to catch event when ip address assigned or renewed (in case of dhcp client) via DBus?
I want to act every time ip address appeared or changed in the system, then get ActiveConnection that event belongs to.
Could not figure out from documentation. Seems I have to catch PropertiesChanged signal of org.freedesktop.NetworkManager.Connection.Active interface and then filter by Ip4Config property. Am I right or there is more straight way?
Best regards,
Alexander.
More information about the Networkmanager
mailing list