summaryrefslogtreecommitdiff
path: root/pimd/pim_cmd_common.c
diff options
context:
space:
mode:
authorMobashshera Rasool <mrasool@vmware.com>2022-07-11 04:13:29 -0700
committerMobashshera Rasool <mrasool@vmware.com>2022-07-11 04:37:46 -0700
commite6389683248232e77e04dcfd36c34844b4096314 (patch)
treed9c16fa1fe308f383111b92e6d3a70da0764386a /pimd/pim_cmd_common.c
parent3fb4bef537b4047feada63531026f22f906ea21b (diff)
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 <ifname> 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 <mrasool@vmware.com>
Diffstat (limited to 'pimd/pim_cmd_common.c')
-rw-r--r--pimd/pim_cmd_common.c4
1 files 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",