In the current development version of the controller module there is a feature which resembles what you describe: Group Templates <https://github.com/openwisp/openwisp-controller/#group-templates>. The difference is that groups are meant to control configuration and management details of devices which are not necessarily related to a location, but you can have one group for each location if you want. You're already the second person that mentions templates based on locations so one thing we could do in the near future is to specify a location in a group, so that any device assigned to a group automatically gets the location as well.
With the current version (OpenWISP 22.05) the most convenient thing you can do is to create one Template for each location and assign it manually after device registration: since you will have to assign this device to a location anyway, in this step you also assign it the template of the location. Best regards *Federico Capoano* OpenWISP OÜ Harjumaa, Tallinn, Sepapaja tn 6, 15551 VAT: EE101989729 *openwisp.io* <http://openwisp.io> On Fri, Nov 11, 2022 at 3:16 PM Sai Subramanian <[email protected]> wrote: > Hi team, > > Is it possible to assign wg profiles based of the location of the Openwrt > router? > > Like for example I am UK and my router to a profile in a UK server and now > I travel to India, is there a way using OpenWISP where I can make the > router automatically connect to a server in India? > > Regards > Sai > > -- > You received this message because you are subscribed to the Google Groups > "OpenWISP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/openwisp/CAJ-rO8aFpMTozYgn1TmSHC7dKei1d4Yk%3DqEwG9tO84MBhjd4Lw%40mail.gmail.com > <https://groups.google.com/d/msgid/openwisp/CAJ-rO8aFpMTozYgn1TmSHC7dKei1d4Yk%3DqEwG9tO84MBhjd4Lw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAAGgX6JOAhhyk24eWggA3-LR5W_59ttA9MTucsEC--j2jG85yQ%40mail.gmail.com.
