]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Add Local Genid to 'show ip pim hello'
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 2 Aug 2016 13:58:14 +0000 (09:58 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:04 +0000 (20:26 -0500)
Display the local idea of what the Genid is

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

index e9ef72c637af6cad696e330ceca442274832769b..9d1602ac40842546377d9ca2e5bcf5a4916890f5 100644 (file)
@@ -614,7 +614,7 @@ static void pim_show_hello(struct vty *vty)
   
   now = pim_time_monotonic_sec();
   
-  vty_out(vty, "Interface Address         Period Timer StatStart Recv Rfail Send Sfail%s", VTY_NEWLINE);
+  vty_out(vty, "Interface Address         Period Timer StatStart Recv Rfail Send Sfail   LGenid%s", VTY_NEWLINE);
 
   for (ALL_LIST_ELEMENTS_RO (vrf_iflist (VRF_DEFAULT), node, ifp)) {
     struct pim_interface *pim_ifp;
@@ -637,7 +637,7 @@ static void pim_show_hello(struct vty *vty)
     pim_time_mmss(hello_period, sizeof(hello_period), pim_ifp->pim_hello_period);
     pim_time_uptime(stat_uptime, sizeof(stat_uptime), now - pim_ifp->pim_ifstat_start);
 
-    vty_out(vty, "%-9s %-15s %6s %5s %9s %4u %5u %4u %5u%s",
+    vty_out(vty, "%-9s %-15s %6s %5s %9s %4u %5u %4u %5u %08x%s",
            ifp->name,
            inet_ntoa(ifaddr),
            hello_period,
@@ -647,6 +647,7 @@ static void pim_show_hello(struct vty *vty)
            pim_ifp->pim_ifstat_hello_recvfail,
            pim_ifp->pim_ifstat_hello_sent,
            pim_ifp->pim_ifstat_hello_sendfail,
+            pim_ifp->pim_generation_id,
            VTY_NEWLINE);
   }
 }