diff options
| author | vivek <vivek@cumulusnetworks.com> | 2015-10-29 09:34:47 -0700 |
|---|---|---|
| committer | vivek <vivek@cumulusnetworks.com> | 2015-10-29 09:34:47 -0700 |
| commit | b2b83ff67a91d24e7cd9871663f341b14c0834a2 (patch) | |
| tree | a8e2fdc521550a4156bcf34a826652def5d7e759 | |
| parent | 6896f650180700bafc543af21701be8b79eeee61 (diff) | |
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 <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.
| -rw-r--r-- | bgpd/bgp_nexthop.c | 3 |
1 files changed, 2 insertions, 1 deletions
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: |
