diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-10-18 10:19:58 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-10-25 09:24:53 -0400 |
| commit | 7aacfd1b4633e47ef71fff34cf90bbad1e16f8fb (patch) | |
| tree | 15fa9e1831c07b84e71db8633408e1cf72b72d35 | |
| parent | 7d4aea30071b3b56849614380f1b3c1ae0e47cd5 (diff) | |
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>
| -rw-r--r-- | bgpd/bgp_routemap.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index 75688e55c2..f26498fb03 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -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; |
