From: vivek Date: Thu, 29 Oct 2015 16:34:47 +0000 (-0700) Subject: BGP: Display the interface name used to resolve a nexthop. X-Git-Tag: frr-2.0-rc1~1213^2~23 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=b2b83ff67a91d24e7cd9871663f341b14c0834a2;p=matthieu%2Ffrr.git BGP: Display the interface name used to resolve a nexthop. 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 Reviewed-by: Donald Sharp Reviewed-by: Daniel Walton 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. --- diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c index ed7512cad2..4b3d14af58 100644 --- a/bgpd/bgp_nexthop.c +++ b/bgpd/bgp_nexthop.c @@ -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: