netjsonconfig¶
Netjsonconfig is part of the OpenWISP project.
netjsonconfig is a python library that converts NetJSON DeviceConfiguration objects into real router configurations that can be installed on systems like OpenWRT or OpenWisp Firmware.
Its main features are:
- OpenWRT support
- OpenWisp Firmware support
- Possibility to support more firmwares via custom backends
- Based on the NetJSON RFC
- Validation based on JSON-Schema
- Templates: store common configurations in templates
- Multiple template inheritance: reduce repetition to the minimum
- File inclusion: easy inclusion of arbitrary files in configuration packages
- Variables: reference variables in the configuration
- Command line utility: easy to use from shell scripts or from other programming languages
Contents:
- Setup
- Basic concepts
- OpenWRT Backend
- Initialization
- Render method
- Generate method
- Write method
- JSON method
- General settings
- Network interfaces
- Bridge settings
- Wireless settings
- Radio settings
- Static Routes
- Policy routing
- Programmable switch settings
- NTP settings
- LED settings
- Including custom options
- Including custom lists
- Including additional files
- All the other settings
- OpenWISP 1.x Backend
- Command line utility
- Running tests
- Contributing
- Motivations and Goals
- Change log