See here:
https://github.com/openwisp/django-netjsonconfig#netjsonconfig_backends
You could have:
NETJSONCONFIG_BACKENDS = (
('pythonpath.to.your.Backend', 'NewBackend'),
('netjsonconfig.OpenWrt', 'OpenWRT'),
('netjsonconfig.OpenWisp', 'OpenWISP'),
)
Or you can also remove the entries you don't need or don't want to show.
This must go in the django settings file, if you are using
ansible-openwisp2 you should configure it in the vars section like the
following:
vars:
openwisp2_extra_django_settings_instructions:
- |
NETJSONCONFIG_BACKENDS = (
('pythonpath.to.your.Backend', 'NewBackend'),
('netjsonconfig.OpenWrt', 'OpenWRT'),
('netjsonconfig.OpenWisp', 'OpenWISP'),
)
I hope this helps.
Fed
On Tue, May 15, 2018 at 12:40 PM Deepak rocks <[email protected]>
wrote:
> Hi,
>
> I want to add new backend for templates. By default OpenWRT/LEDE and
> OenWISP Firmware1.x is coming as drop down.
> I have followed the below step to add NewDevice Backend.
>
> - cloned the netjsonconfig/backend/openwrt module and created a new backend
> and changed
> name from "OpenWrt" to "NewDevice".
>
>
> 1. What all changes required in django-netjsonconfig and openwisp-controller
> ?
>
> If anyone have any idea then it would be very helpful.
>
> --
> 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].
> For more options, visit https://groups.google.com/d/optout.
>
--
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].
For more options, visit https://groups.google.com/d/optout.