]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Correct the order of show json for interface traffic 11583/head
authorMobashshera Rasool <mrasool@vmware.com>
Mon, 11 Jul 2022 11:13:29 +0000 (04:13 -0700)
committerMobashshera Rasool <mrasool@vmware.com>
Mon, 11 Jul 2022 11:37:46 +0000 (04:37 -0700)
"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>
pimd/pim_cmd_common.c

index 76a7c4b122dd3718e874e07c2cefda93b6dc3c59..c30017fc12fc3509ce7cc42220a3bbcd23b9eb1a 100644 (file)
@@ -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",