]> git.puffer.fish Git - mirror/frr.git/commitdiff
pim: Show Iif for 'show ip pim upstream' command
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 29 Jun 2016 19:49:57 +0000 (15:49 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 29 Jun 2016 19:49:57 +0000 (15:49 -0400)
Modify the 'show ip pim upstream' command to
show the expected incoming interface for
the source.

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

index 9f8eb059cc33d60107eecb09c42d6ea572d6c648..68446572eb414f3e2b56c004584f75e981b818e8 100644 (file)
@@ -980,7 +980,7 @@ static void pim_show_upstream(struct vty *vty)
 
   now = pim_time_monotonic_sec();
 
-  vty_out(vty, "Source          Group           State Uptime   JoinTimer RefCnt%s", VTY_NEWLINE);
+  vty_out(vty, "Iif       Source          Group           State Uptime   JoinTimer RefCnt%s", VTY_NEWLINE);
 
   for (ALL_LIST_ELEMENTS_RO(qpim_upstream_list, upnode, up)) {
       char src_str[100];
@@ -993,7 +993,8 @@ static void pim_show_upstream(struct vty *vty)
       pim_time_uptime(uptime, sizeof(uptime), now - up->state_transition);
       pim_time_timer_to_hhmmss(join_timer, sizeof(join_timer), up->t_join_timer);
 
-      vty_out(vty, "%-15s %-15s %-5s %-8s %-9s %6d%s",
+      vty_out(vty, "%-10s%-15s %-15s %-5s %-8s %-9s %6d%s",
+             up->rpf.source_nexthop.interface->name,
              src_str,
              grp_str,
              up->join_state == PIM_UPSTREAM_JOINED ? "Jnd" : "NtJnd",