mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 09:20:25 +00:00
zebra: improve display of NEXTHOP_IPV4_IFINDEX in show ip route
Signed-off-by: Christian Franke <chris@opensourcerouting.org> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
a0f6ce5b41
commit
5b9f51828d
@ -621,7 +621,11 @@ vty_show_ip_route_detail (struct vty *vty, struct route_node *rn)
|
||||
{
|
||||
case NEXTHOP_TYPE_IPV4:
|
||||
case NEXTHOP_TYPE_IPV4_IFINDEX:
|
||||
vty_out (vty, " via %s)", inet_ntoa (nexthop->rgate.ipv4));
|
||||
vty_out (vty, " via %s", inet_ntoa (nexthop->rgate.ipv4));
|
||||
if (nexthop->rifindex)
|
||||
vty_out (vty, ", %s", ifindex2ifname (nexthop->rifindex));
|
||||
vty_out (vty, ")");
|
||||
|
||||
break;
|
||||
case NEXTHOP_TYPE_IFINDEX:
|
||||
case NEXTHOP_TYPE_IFNAME:
|
||||
@ -731,7 +735,10 @@ vty_show_ip_route (struct vty *vty, struct route_node *rn, struct rib *rib)
|
||||
{
|
||||
case NEXTHOP_TYPE_IPV4:
|
||||
case NEXTHOP_TYPE_IPV4_IFINDEX:
|
||||
vty_out (vty, " via %s)", inet_ntoa (nexthop->rgate.ipv4));
|
||||
vty_out (vty, " via %s", inet_ntoa (nexthop->rgate.ipv4));
|
||||
if (nexthop->rifindex)
|
||||
vty_out (vty, ", %s", ifindex2ifname (nexthop->rifindex));
|
||||
vty_out (vty, ")");
|
||||
break;
|
||||
case NEXTHOP_TYPE_IFINDEX:
|
||||
case NEXTHOP_TYPE_IFNAME:
|
||||
|
Loading…
Reference in New Issue
Block a user