A python utility used to generate sysrepo plugin templates and boilerplate code based on YANG models.
> python3 src/sysrepo-plugin-generator.py --help
usage: sysrepo-plugin-generator.py [-h] -d YANG_DIR -o OUT_DIR -c CONFIG -l LANG
Sysrepo plugin generator.
options:
-h, --help show this help message and exit
-d YANG_DIR, --dir YANG_DIR
Directory containing all the yang modules.
-o OUT_DIR, --outdir OUT_DIR
Output source directory to use.
-c CONFIG, --config CONFIG
Configuration file to use for generation.
-l LANG, --lang LANG Destination language to generate to (C or C++).
Example of generating a C ietf-system YANG model sysrepo plugin: