mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-16 17:50:30 +00:00
bgpd: Allow 'match peer' for all route-map types
There are multiple places that we use route-maps in bgp There is no need to limit the route-map 'match peer ...' command to just import and export route-map types. I see need for using this in table-maps as well. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
7d4aea3007
commit
7aacfd1b46
@ -249,10 +249,6 @@ static route_map_result_t route_match_peer(void *rule, struct prefix *prefix,
|
||||
su = &pc->su;
|
||||
peer = ((struct bgp_info *)object)->peer;
|
||||
|
||||
if (!CHECK_FLAG(peer->rmap_type, PEER_RMAP_TYPE_IMPORT)
|
||||
&& !CHECK_FLAG(peer->rmap_type, PEER_RMAP_TYPE_EXPORT))
|
||||
return RMAP_NOMATCH;
|
||||
|
||||
if (pc->interface) {
|
||||
if (!peer->conf_if)
|
||||
return RMAP_NOMATCH;
|
||||
|
Loading…
Reference in New Issue
Block a user