Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
statd: allow ethtool rmon counters readout to fail
In e373398 we 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 before e373398 is that run_json_cmd() will log an error that ethtool failed, for every interface it is called on. Signed-off-by: Joachim Wiberg <[email protected]>
- Loading branch information