openwisp / openwisp-config

OpenWRT configuration agent for OpenWISP Controller
https://openwisp.io/docs/dev/openwrt-config-agent/
GNU General Public License v3.0
374 stars 59 forks source link

[change] Allow determining the management_ip automatically #208

Open nemesifier opened 6 months ago

nemesifier commented 6 months ago

We can determine the management IP from the configuration we download from OpenWISP, instead of having the user have to define this.

This will probably need a change in the server (eg: we can allow flagging a template as a management interface and allow specifying the interface name.

Once the agent sets the new management interface, it will have to report the IP (which could be assigned dynamically as in the case of OpenVPN) to the server.