]> git.puffer.fish Git - mirror/frr.git/commitdiff
BGP: Display the interface name used to resolve a nexthop.
authorvivek <vivek@cumulusnetworks.com>
Thu, 29 Oct 2015 16:34:47 +0000 (09:34 -0700)
committervivek <vivek@cumulusnetworks.com>
Thu, 29 Oct 2015 16:34:47 +0000 (09:34 -0700)
Display the interface name used to resolve a nexthop instead of just
the ifIdx. This is already done for many cases, but was missing for
one scenario.

Signed-off-by: Vivek Venkataraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
Ticket: CM-6888
Reviewed By: CCR-3705
Testing Done: Manual verification

This is an import of patch bgpd-show-ifname-for-nht.patch from 2.5-br.

bgpd/bgp_nexthop.c

index ed7512cad2e620a8162441f31635383a45d9c30c..4b3d14af58730fd85cbfaa313fe986ef557df9b2 100644 (file)
@@ -477,7 +477,8 @@ show_ip_bgp_nexthop_table (struct vty *vty, int detail)
                            VTY_NEWLINE);
                    break;
                  case NEXTHOP_TYPE_IFINDEX:
-                   vty_out (vty, "  ifidx %u%s", nexthop->ifindex,
+                   vty_out (vty, "  if %s%s",
+                             ifindex2ifname(nexthop->ifindex),
                             VTY_NEWLINE);
                    break;
                  default: