Hi João, at the moment there's no built-in openwisp feature to automate this.
What you can do is to create a custom OpenWRT image which has a script which automatically sets the hostname based on your requirements. Take a look here: https://openwrt.org/docs/guide-developer/uci-defaults Federico On Mon, Oct 14, 2019 at 4:48 PM João Henrique Albuquerque < [email protected]> wrote: > > Hi is it possible to customize the hostname default with netjson config? > I would like to add a prefix on the devices hostname separete by a common > value. Today I'm using underscore '_' which dosen't allow registration. > After subscribing I would have something like 'OrgName_APMAC' > > Ideally I would like to keep the underscore but I understand this could be > an issue with the RFC for the hostname. > > Cheers > > -- > 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/71682af9-587b-4848-9321-56f8583607e5%40googlegroups.com > <https://groups.google.com/d/msgid/openwisp/71682af9-587b-4848-9321-56f8583607e5%40googlegroups.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/CAERYH6WDV%3DfivKef5NHZYuo%2Bb%2BPMKTxVoZnK%3Dnb8s3KD2xrVXA%40mail.gmail.com.
