bgpd: Display interface next-hop for "show ip bgp" with unnumbered

Found that the logic had been changed to determine whether the next-hop
is a v4 or v6 address.  This caused an unnumbered interface to be seen
as ipv4 instead of ipv6 so the swp port was not correctly displayed.
Changed it back. Manual testing attaced to the ticket and bgp-min will
be run before committing.

Ticket: CM-12759
Signed-off-by: Don Slice
Reviewed-by: CCR-5166
This commit is contained in:
Don Slice 2016-09-09 06:35:47 -07:00
parent dcaf0c593f
commit f81e127ed1

View File

@ -5922,7 +5922,7 @@ route_vty_out (struct vty *vty, struct prefix *p,
vty_out(vty, "?");
}
/* IPv4 Next Hop */
else if (p->family == AF_INET || !BGP_ATTR_NEXTHOP_AFI_IP6(attr))
else if (p->family == AF_INET && !BGP_ATTR_NEXTHOP_AFI_IP6(attr))
{
if (json_paths)
{