Delete all BGP communities except
Brooks Swinnerton
bswinnerton at gmail.com
Thu Oct 29 17:33:05 CET 2020
Hi Alexander,
Yes, I think the example code that I shared would be present in a filter
function. Specifically the question is with respect to filtering out all
BGP communities *except* one that starts with a given value.
On Thu, Oct 29, 2020 at 11:35 AM Alexander Zubkov <green at qrator.net> wrote:
> Hello,
>
> Take a look at the "filter" function. I think it is what you want.
>
> On Thu, Oct 29, 2020 at 3:26 PM Brooks Swinnerton <bswinnerton at gmail.com>
> wrote:
> >
> > Hello,
> >
> > Is it possible to delete all BGP communities from prefixes learned from
> a specific BGP session except ones that start with a given value? For
> example something like:
> >
> > if (bgp_path ~ 64496) then {
> > bgp_large_community.delete([(!64496, *, *)]);
> > }
> >
> > I haven't tested this syntax, but I can't imagine it would work. I'm
> mostly curious if there's a concept of "except" when deleting BGP
> communities.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20201029/2747ffa9/attachment.htm>
More information about the Bird-users
mailing list