kernelkit / infix

Linux :yellow_heart: NETCONF = Infix
https://kernelkit.org
GNU General Public License v2.0
52 stars 12 forks source link

Refactor sysrepo-load-modules.sh and extract modules.state #762

Open troglobit opened 3 weeks ago

troglobit commented 3 weeks ago

A great improvement in Infix of late, was when the bootstrapping of YANG modules was moved from runtime (on the device) to build time. As a spin-off we gained early detection of model issues -- not having to face a surprise when eventually starting up a device, and quicker device startup time.

After a few months now with this improvement in place we see other areas of improvement:

Hence, a retake is necessary for increased efficiency, reliability, and add more features.

  1. We need to refactor the sysrepo-load-modules.sh script, basically rewrite it without the Netopeer2 legacy
  2. When a developer does make confd-rebuild all modules should be reloaded, hence confd needs to "own" all modules, not spread out in sysrepo, netopeer2/libnetconf2, and rousette
  3. With that in place, the script could do a: sysrepocfg -X -f json -d operational -x /modules-state > modules-state.json