From 6714f864c3432bb86d87f2caa918d290fadbb224 Mon Sep 17 00:00:00 2001 From: vivek Date: Mon, 28 Mar 2016 22:10:44 -0700 Subject: [PATCH] Zebra: Fix nexthops in IPv6 route display Ticket: CM-10135 Reviewed By: Trivial Testing Done: None --- zebra/zebra_vty.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index db6516ee2e..5f4f49e430 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -4523,11 +4523,12 @@ vty_show_ipv6_route_detail (struct vty *vty, struct route_node *rn) vty_out (vty, " %s", inet_ntop (AF_INET6, &nexthop->gate.ipv6, buf, BUFSIZ)); if (nexthop->ifindex) - vty_out (vty, ", via %s", ifindex2ifname (nexthop->ifindex)); + vty_out (vty, ", via %s", + ifindex2ifname_vrf (nexthop->ifindex, rib->vrf_id)); break; case NEXTHOP_TYPE_IFINDEX: vty_out (vty, " directly connected, %s", - ifindex2ifname (nexthop->ifindex)); + ifindex2ifname_vrf (nexthop->ifindex, rib->vrf_id)); break; default: break; @@ -4590,11 +4591,12 @@ vty_show_ipv6_route (struct vty *vty, struct route_node *rn, vty_out (vty, " via %s", inet_ntop (AF_INET6, &nexthop->gate.ipv6, buf, BUFSIZ)); if (nexthop->ifindex) - vty_out (vty, ", %s", ifindex2ifname (nexthop->ifindex)); + vty_out (vty, ", %s", + ifindex2ifname_vrf (nexthop->ifindex, rib->vrf_id)); break; case NEXTHOP_TYPE_IFINDEX: vty_out (vty, " is directly connected, %s", - ifindex2ifname (nexthop->ifindex)); + ifindex2ifname_vrf (nexthop->ifindex, rib->vrf_id)); break; default: break; -- 2.39.5