GENET (Generic Erlang Transform) for NSO and ConfD is a framework for building complex YANG-to-YANG model transformations.
If used with NSO, deploy this as a NSO package using the standard means - make all to compile it and packages reload to let NSO notice the package
presence.
To compile the package with ConfD, make sure that $CONFD_DIR points to the
confd installation directory (and also that $NCS_DIR does not exist); with
that, make all compiles all that is needed.
So as to run the transform code ConfD needs two paths to be added to its load
path, e.g. using --addloadpath:
- path to the root of the package; ConfD will notice the
erlang-libsubdirectory load the genet application from there; - path to
load-dirto point ConfD to the genet configuration data model.
The only configurable part of genet is how and where it logs:
/ec-genet/logging/level- a value from the rangeoff..debugto tell genet desired logging verbosity/ec-genet/logging/destination- a choice with childrenlog-file-name,developer-logto log to NSO/ConfD's developer,stdout.
To learn about genet API, run make docs and open
erlang-lib/ec_genet/edoc/index.html in your browser.
This package is accompanied by an example package that shows basic concepts of genet mappings.