Next steps
Once finished with the tutorial, these are some of the recommended steps to take for improving your sysrepo plugin development skills:
- Write a simple implementation of the ietf-system sysrepo plugin which is based on the ietf-system YANG module (opens in a new tab):
- Create a module change callback for the
/ietf-system:system/hostnamenode and change the hostname on the system based on the edit operation like shown in the tutorial. - Create an operational provider for the
/ietf-system:system-state/platformcontainer and retreive the platform state information usingutsnamedata structure. - Create an RPC callback for the
/ietf-system:system-restartor/ietf-system:set-current-datetimeRPC nodes and implement the needed functionality.
- Create a module change callback for the
- Once you're comfortable with using bare sysrepo and libyang libraries, you can scan through the sysrepo-plugins-common (opens in a new tab) library and see which useful functionalities it implements to make plugin development easier and faster - safe call macros, change iteration using a callback (
srpc_iterate_changes()) and useful data structures intended to help plugin developers. - Compile the current DT ietf-system plugin implementation (opens in a new tab) and read through the plugin code to see how sysrepo-plugins-common library is being used and how current plugins are being implemented.