All examples are located in
Using Python virtual environment is recommended. Look at devinstall
example-data.json is example of Json-encoded file, which is valid against resolvers-yang data model
You can edit this Json and validate it against data model using
$ make validate
No output means that
example-data.json is valid.
This script will generate
kresd.conf files in local files.
generate_conf.py script with path to Json file as parameter
$ python generate_conf.py example-data.json
unbound.conf is converted to JSON using
unb_to_json.py script. The result do not have to be the same as input JSON for
generate_conf.py script because the configuration designed to Knot Resolver is ignored for Unbound.
This script will convert Unbound configuration text file
unbound.conf to resolvers-yang data model valid Json-encoded file
As example configuration file can be used
unbound.conf created by running
unb_to_conf.py with path to
unbound.conf as parameter
$ python unb_to_json.py unbound.conf
No output means that the JSON data in created
unb-data.json is valid.
If you generate another
unbound.conf from this Json using
generate_conf.py script, it should be equal to
unbound.conf, which was used as input parameter to