From 2e948c781311c9c22abff68bf6ba5e1219f219fd Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 29 Jun 2016 15:49:57 -0400 Subject: [PATCH] pim: Show Iif for 'show ip pim upstream' command Modify the 'show ip pim upstream' command to show the expected incoming interface for the source. Ticket: CM-11220 Signed-off-by: Donald Sharp --- pimd/pim_cmd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 9f8eb059cc..68446572eb 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -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", -- 2.39.5