Next Steps

Next steps

Once finished with the tutorial, these are some of the recommended steps to take for improving your sysrepo plugin development skills:

  1. Write a simple implementation of the ietf-system sysrepo plugin which is based on the ietf-system YANG module (opens in a new tab):
    1. Create a module change callback for the /ietf-system:system/hostname node and change the hostname on the system based on the edit operation like shown in the tutorial.
    2. Create an operational provider for the /ietf-system:system-state/platform container and retreive the platform state information using utsname data structure.
    3. Create an RPC callback for the /ietf-system:system-restart or /ietf-system:set-current-datetime RPC nodes and implement the needed functionality.
  2. 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.
  3. 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.