mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 21:13:00 +02:00
This change adds a hook to the startup datastore, we use the ietf-system module because the module argument is mandatory. The hook runs when all changes have been saved to the internal store. Since sysrepo has many startup files in /etc/sysrepo, we saving a JSON copy of all these files in /cfg/startup-config.cfg, which is persistent. On system bootstrap this file is merged into the (empty) running datastore, which is what the sysrepo maintainers recommend to be independent of any yang model updates that might occur on image upgrades. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>