From: Donald Sharp Date: Fri, 21 Sep 2018 14:17:48 +0000 (-0400) Subject: pimd: Add some extra information to a show command X-Git-Tag: frr-7.1-dev~345^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a0bf54c7dec30b12daff1a92d0418679de881a3e;p=mirror%2Ffrr.git pimd: Add some extra information to a show command 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 --- diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 1f3336811f..26932eea20 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -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);