sysrepo-plugin-generator

Boilerplate C and C++ code generator for sysrepo plugins. Works by providing the configuration file and an initial YANG model to use for structure generation.

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: