summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Slice <dslice@cumulusnetworks.com>2016-09-09 06:35:47 -0700
committerDon Slice <dslice@cumulusnetworks.com>2016-09-09 08:00:56 -0700
commitf81e127ed15b7500249be9b4294ce795ec2b08d6 (patch)
tree43714b757a19a9c441d970a07a5ecd5a695f2970
parentdcaf0c593f8967cc2d9b3960abc525632d217c6c (diff)
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
-rw-r--r--bgpd/bgp_route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index f767fae1a9..af0159855d 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -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)
{