]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: display passive in show ip pim interface cmd
authorsarita patra <saritap@vmware.com>
Thu, 7 Apr 2022 07:43:20 +0000 (00:43 -0700)
committersarita patra <saritap@vmware.com>
Fri, 13 May 2022 06:51:21 +0000 (23:51 -0700)
Signed-off-by: sarita patra <saritap@vmware.com>
pimd/pim_cmd_common.c

index cb98638107dba3fb4a6ce5235739844e27ba1131..817afd60d93dbbbaa80bbc5fe6c2546d87df6c15 100644 (file)
@@ -2110,6 +2110,10 @@ void pim_show_interfaces_single(struct pim_instance *pim, struct vty *vty,
                                                       sec_list);
                        }
 
+                       if (pim_ifp->pim_passive_enable)
+                               json_object_boolean_true_add(json_row,
+                                                            "passive");
+
                        /* PIM neighbors */
                        if (pim_ifp->pim_neighbor_list->count) {
                                json_pim_neighbors = json_object_new_object();
@@ -2276,6 +2280,12 @@ void pim_show_interfaces_single(struct pim_instance *pim, struct vty *vty,
                        } else {
                                vty_out(vty, "Address    : %pPAs\n", &ifaddr);
                        }
+
+                       if (pim_ifp->pim_passive_enable)
+                               vty_out(vty, "Passive    : %s\n",
+                                       (pim_ifp->pim_passive_enable) ? "yes"
+                                                                     : "no");
+
                        vty_out(vty, "\n");
 
                        /* PIM neighbors */