Tutorial

Plugin development tutorial

This tutorial is intended to serve as an intro to sysrepo plugin development. The tutorial goes over all parts of the plugin development such as setting up CMake and the build system, creating plugin init and cleanup callbacks, using sysrepo and libyang together and creating a main() function which will be used to create a plugin executable - similar to what sysrepo-plugind utility does.

This tutorial assumes you've read and studied sysrepo (opens in a new tab) and libyang (opens in a new tab) documentation and that you have an understanding of how they work together to create a YANG based configuration management system.

It's recommended to have both sysrepo and libyang documentation open while reading the tutorial and looking into highlighted functions which are being used.