From e6389683248232e77e04dcfd36c34844b4096314 Mon Sep 17 00:00:00 2001 From: Mobashshera Rasool Date: Mon, 11 Jul 2022 04:13:29 -0700 Subject: [PATCH] pimd: Correct the order of show json for interface traffic "show ip pim interface traffic json" shows pruneTx first and then pruneRx stats where as "show ip pim interface json" shows pruneRx first and then pruneTx stats. Although the values are right but the display looks odd. Making it same as other stats, first display Rx and then Tx. Signed-off-by: Mobashshera Rasool --- pimd/pim_cmd_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pimd/pim_cmd_common.c b/pimd/pim_cmd_common.c index 76a7c4b122..c30017fc12 100644 --- a/pimd/pim_cmd_common.c +++ b/pimd/pim_cmd_common.c @@ -4738,10 +4738,10 @@ void pim_show_interface_traffic(struct pim_instance *pim, struct vty *vty, pim_ifp->pim_ifstat_join_recv); json_object_int_add(json_row, "joinTx", pim_ifp->pim_ifstat_join_send); - json_object_int_add(json_row, "pruneTx", - pim_ifp->pim_ifstat_prune_send); json_object_int_add(json_row, "pruneRx", pim_ifp->pim_ifstat_prune_recv); + json_object_int_add(json_row, "pruneTx", + pim_ifp->pim_ifstat_prune_send); json_object_int_add(json_row, "registerRx", pim_ifp->pim_ifstat_reg_recv); json_object_int_add(json_row, "registerTx", -- 2.39.5