mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 22:29:23 +00:00
Merge pull request #3659 from nitinsoniism/route_map_type_5_filter
bgpd: route-map fails to filter type-5 routes
This commit is contained in:
commit
45b5418e7f
@ -3325,13 +3325,19 @@ static void bgp_route_map_process_update(struct bgp *bgp, const char *rmap_name,
|
|||||||
!= 0)
|
!= 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
/* Make sure the route-map is populated here if not already done */
|
||||||
|
bgp->adv_cmd_rmap[afi][safi].map = map;
|
||||||
|
|
||||||
if (BGP_DEBUG(zebra, ZEBRA))
|
if (BGP_DEBUG(zebra, ZEBRA))
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"Processing route_map %s update on advertise type5 route command",
|
"Processing route_map %s update on advertise type5 route command",
|
||||||
rmap_name);
|
rmap_name);
|
||||||
|
|
||||||
|
if (route_update) {
|
||||||
bgp_evpn_withdraw_type5_routes(bgp, afi, safi);
|
bgp_evpn_withdraw_type5_routes(bgp, afi, safi);
|
||||||
bgp_evpn_advertise_type5_routes(bgp, afi, safi);
|
bgp_evpn_advertise_type5_routes(bgp, afi, safi);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bgp_route_map_process_update_cb(char *rmap_name)
|
static void bgp_route_map_process_update_cb(char *rmap_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user