mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 13:06:51 +00:00
bgpd: Fix for match source-protocol in route-map for redistribute cmd
A redistribute cmd can have a route-map attached to it and adding the
match source-protocol to that route-map means BGP to filter which
protocol routes to accept among the bunch of routes zebra is sending.
Fixing this since this wasnt implemented earlier.
Ticket :#4119692
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com>
(cherry picked from commit 68358c0f92
)
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
7f28c4786a
commit
f93e5aa166
@ -8963,6 +8963,7 @@ void bgp_redistribute_add(struct bgp *bgp, struct prefix *p,
|
||||
memset(&rmap_path, 0, sizeof(rmap_path));
|
||||
rmap_path.peer = bgp->peer_self;
|
||||
rmap_path.attr = &attr_new;
|
||||
rmap_path.type = type;
|
||||
|
||||
SET_FLAG(bgp->peer_self->rmap_type,
|
||||
PEER_RMAP_TYPE_REDISTRIBUTE);
|
||||
|
Loading…
Reference in New Issue
Block a user