summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_nexthop.c3
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: