From d54600fa83f0a151ee1eddcd81998348e7995fee Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Tue, 10 Jul 2018 15:22:13 +0200 Subject: [PATCH] bgpd: ability to set vpnv4 nexthop with route-map Ability to set nexthop IP pointer with route-map. Signed-off-by: Philippe Guibert --- bgpd/bgp_routemap.c | 3 +++ 1 file changed, 3 insertions(+) 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); } } -- 2.39.5