mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-01 21:33:02 +02:00
There should be no functional change in this patch. In this patch we rewrite the data collection in python3. This is the new script called "yanger". It runs various commands on the system, such as "ip" and "ethtool". It then mangles the output data from these commands into valid YANG data. The yanger script is started from the sysrepo callback in the statd c code. Its output is parsed using lyd_parse_data_fd(). This means that the daemon part of statd is still written in c and the new python code is only used when getting a query callback from sysrepo. The c code still handles the interface netlink messages from the kernel which controls what interfaces statd should do sysrepo subscribe/unsubscribe to. Signed-off-by: Richard Alpe <richard@bit42.se>