From: Philippe Guibert Date: Tue, 10 Jul 2018 13:22:13 +0000 (+0200) Subject: bgpd: ability to set vpnv4 nexthop with route-map X-Git-Tag: frr-6.1-dev~170^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F2647%2Fhead;p=mirror%2Ffrr.git bgpd: ability to set vpnv4 nexthop with route-map Ability to set nexthop IP pointer with route-map. Signed-off-by: Philippe Guibert --- diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index f7c79f873d..f9f5142cd0 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -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); } }