mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 13:03:02 +02:00
Ine373398we restored statd suport for checking for faults in yanger at runtime. This in turn broke CLI "show interfaces" support on the little NanoPi R2S because ethtool cannot read counters in JSON format on it. This patch catches the subprocess exception, allowing this particular call to ethtool to fail with empty result. The only difference from beforee373398is that run_json_cmd() will log an error that ethtool failed, for every interface it is called on. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>