]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Add some extra information to a show command
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 21 Sep 2018 14:17:48 +0000 (10:17 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 21 Sep 2018 14:17:48 +0000 (10:17 -0400)
The tracking of who have drpriority on an interface
in pim was not displayed anywhere.  Add to the show
command for future reference.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_cmd.c

index 1f3336811f0236d48e85d452cf7a6f0bb6b4c23d..26932eea203e6e4f0e53d888d6938420a3452de2 100644 (file)
@@ -1187,8 +1187,9 @@ static void pim_show_interfaces_single(struct pim_instance *pim,
                        vty_out(vty, "Designated Router\n");
                        vty_out(vty, "-----------------\n");
                        vty_out(vty, "Address   : %s\n", dr_str);
-                       vty_out(vty, "Priority  : %d\n",
-                               pim_ifp->pim_dr_priority);
+                       vty_out(vty, "Priority  : %d(%d)\n",
+                               pim_ifp->pim_dr_priority,
+                               pim_ifp->pim_dr_num_nondrpri_neighbors);
                        vty_out(vty, "Uptime    : %s\n", dr_uptime);
                        vty_out(vty, "Elections : %d\n",
                                pim_ifp->pim_dr_election_count);