Merge pull request #2647 from pguibert6WIND/fix_routemap_vpnv4

bgpd: ability to set vpnv4 nexthop with route-map
This commit is contained in:
Lou Berger 2018-07-17 11:02:42 -04:00 committed by GitHub
commit a46696ed60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1298,6 +1298,9 @@ static route_map_result_t route_set_ip_nexthop(void *rule,
bgp_info->attr->nexthop = *rins->address;
SET_FLAG(bgp_info->attr->rmap_change_flags,
BATTR_RMAP_IPV4_NHOP_CHANGED);
/* case for MP-BGP : MPLS VPN */
bgp_info->attr->mp_nexthop_global_in = *rins->address;
bgp_info->attr->mp_nexthop_len = sizeof(*rins->address);
}
}