]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd,lib: route-map/plist matching via type-2/5 routes
authorStephen Worley <sworley@nvidia.com>
Tue, 9 Mar 2021 23:59:09 +0000 (18:59 -0500)
committerStephen Worley <sworley@nvidia.com>
Tue, 23 Aug 2022 16:41:25 +0000 (12:41 -0400)
commit6eb8350586c7eb2afa1ed20381c1febd296e38ed
tree7da8892ddd977de582d95c3a74c45275f7a83f04
parent24df3379881fc7bec6c23294ca5b8c33fcecab63
bgpd,lib: route-map/plist matching via type-2/5 routes

Implement the ability to match type-2 and type-5 routes
via a route-map and a prefix-list.

Add some library code to convert an evpn prefix into
a general ipv4/ipv6 prefix for type-2 and type-5 routes.
evpn prefix is really just another subtype of prefix so all
the info needed can be extracted right there.

Add a special handler to bgp_routemap for evpn type routes
when applying the outbound route-map. This calls the library
code to convert the evpn_prefix to a ipv4/ipv6 prefix and
run it through the plist code. In this we assume type-2 routes
are a /32.

Signed-off-by: Stephen Worley <sworley@nvidia.com>
bgpd/bgp_routemap.c
lib/prefix.c
lib/prefix.h