On Wed, Apr 26, 2017 at 8:12 PM henriqsc <[email protected]> wrote:
> Thanks, as long as these names don't change from device to device I think >> there will be no problem. >> > > One last question related to firewall, I've been able to create several > templates via json which are working neatly but II'm struggling to build a > json template to include an interface to an existing wan zone. > > Is it possible to configure zones using json advanced mode? > > I tried to define the zone inside the interface, but it seems that this > sort of configuration must be done via firewall. > Yes it's possible, you just have to figure out what's the required UCI configuration to accomplish this. You may want to do this from luci, the OpenWRT web interface, and see how it changes the UCI files. Then you can perform the same addition in your templates. If you need help, send some examples. > These are my references: > https://media.readthedocs.org/pdf/netjsonconfig/0.3.7/netjsonconfig.pdf > Pay attention, that link points to the documentation of an old release of the configuration engine, that is 0.3.7, while the latest release is 0.5.5. Please use this URL as a reference: http://netjsonconfig.openwisp.org/en/stable/ > > http://nemesisdesign.net/blog/coding/netjsonconfig-convert-netjson-to-openwrt-uci/ > -- 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.
