mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 03:53:38 +00:00
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 <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
539fba1a52
commit
2e948c7813
@ -980,7 +980,7 @@ static void pim_show_upstream(struct vty *vty)
|
|||||||
|
|
||||||
now = pim_time_monotonic_sec();
|
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)) {
|
for (ALL_LIST_ELEMENTS_RO(qpim_upstream_list, upnode, up)) {
|
||||||
char src_str[100];
|
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_uptime(uptime, sizeof(uptime), now - up->state_transition);
|
||||||
pim_time_timer_to_hhmmss(join_timer, sizeof(join_timer), up->t_join_timer);
|
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,
|
src_str,
|
||||||
grp_str,
|
grp_str,
|
||||||
up->join_state == PIM_UPSTREAM_JOINED ? "Jnd" : "NtJnd",
|
up->join_state == PIM_UPSTREAM_JOINED ? "Jnd" : "NtJnd",
|
||||||
|
Loading…
Reference in New Issue
Block a user