mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-30 03:08:59 +00:00
Merge pull request #2647 from pguibert6WIND/fix_routemap_vpnv4
bgpd: ability to set vpnv4 nexthop with route-map
This commit is contained in:
commit
a46696ed60
@ -1298,6 +1298,9 @@ static route_map_result_t route_set_ip_nexthop(void *rule,
|
|||||||
bgp_info->attr->nexthop = *rins->address;
|
bgp_info->attr->nexthop = *rins->address;
|
||||||
SET_FLAG(bgp_info->attr->rmap_change_flags,
|
SET_FLAG(bgp_info->attr->rmap_change_flags,
|
||||||
BATTR_RMAP_IPV4_NHOP_CHANGED);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user