mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 04:53:01 +02:00
This is a major redesign of statd interface handling. The goal here is to reduce the time it takes for statd to produce operational data for all interfaces on larger iron. Which manifested itself most notably in the CLI command "show interfaces". This patch removes the netlink interface subscriptions done by the statd c code. Instead statd now subscribes to the ietf-interfaces base path which means it will be invoked for all interfaces. If the user (sysrepo) has specified an explicit interface name such as eth0, it will be extracted by statd and passed down to Yanger. This patch also modifies Yanger to fit this new modus. No explicitly passed interface name now means all interfaces. Side note: The main culprit of the slow operational interface data is the time it takes to bootstrap python. Which prior to this patch was done for each interface. On the HW system I'm testing this patch on, runtime is reduced by a factor of 10. Signed-off-by: Richard Alpe <richard@bit42.se>