From a48edc74d8bd4396c16f0cf58a7e13745458973d Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 8 Apr 2024 11:00:30 +0200 Subject: [PATCH] statd: always use mctl -p (plain) output mode The plain output mode prevents garbled JSON output due to the built-in pretty-printer in mctl. Fixed in v2.1 Signed-off-by: Joachim Wiberg --- src/statd/yanger | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/statd/yanger b/src/statd/yanger index 0840fca0..a5dadb2e 100755 --- a/src/statd/yanger +++ b/src/statd/yanger @@ -826,7 +826,7 @@ def main(): add_ethtool_std(ifname, iface_out) if 'type' in iface_out and iface_out['type'] == "infix-if-type:bridge": - mc_status=run_json_cmd(['mctl', 'show', 'igmp', 'json'], "igmp-status.json") + mc_status = run_json_cmd(['mctl', '-p', 'show', 'igmp', 'json'], "igmp-status.json") add_vlans_to_bridge(ifname, iface_out, mc_status) add_mdb_to_bridge(ifname, iface_out, mc_status)