mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
Add a python3 script "ethtool-to-json" which runs ethtool locally and converts output which we are interested in into json. The script simply json encodes the output from ethtool, i.e. it does not print it in YANG format. This might be a good idea to change in the future if the C code has to do a lot of ethtool to YANG translations. The json output of the ethtool-to-json script is then parsed in C using libjansson, translated to YANG and added to the operational datastore. Signed-off-by: Richard Alpe <richard@bit42.se>