⚠️ This issue is not suited for beginners.
We can derive the management IP from the configuration provided by OpenWISP, removing the need for users to define it manually.
This will likely require changes on the server side, for example, introducing the ability to flag a VPN template as the management VPN.
Once the agent configures the management interface, it should report the assigned IP address (which may be dynamic, as in the case of OpenVPN) to the server.
It would also be useful to automatically add a hotplug script that triggers when the management interface comes up, ensuring the IP is updated on the server promptly.
We can derive the management IP from the configuration provided by OpenWISP, removing the need for users to define it manually.
This will likely require changes on the server side, for example, introducing the ability to flag a VPN template as the management VPN.
Once the agent configures the management interface, it should report the assigned IP address (which may be dynamic, as in the case of OpenVPN) to the server.
It would also be useful to automatically add a hotplug script that triggers when the management interface comes up, ensuring the IP is updated on the server promptly.