diff options
author | vivek <vivek@cumulusnetworks.com> | 2016-03-29 07:10:44 +0200 |
---|---|---|
committer | vivek <vivek@cumulusnetworks.com> | 2016-03-29 07:21:08 +0200 |
commit | 6714f864c3432bb86d87f2caa918d290fadbb224 (patch) | |
tree | b90460f0560392126e0d6af270ba515c636eb6cc /zebra/zebra_vty.c | |
parent | BGP: Fix BGP unnumbered peerings across VRFs (diff) | |
download | frr-6714f864c3432bb86d87f2caa918d290fadbb224.tar.xz frr-6714f864c3432bb86d87f2caa918d290fadbb224.zip |
Zebra: Fix nexthops in IPv6 route display
Ticket: CM-10135
Reviewed By: Trivial
Testing Done: None
Diffstat (limited to '')
-rw-r--r-- | zebra/zebra_vty.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index db6516ee2..5f4f49e43 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; |