Re: Delete all BGP communities except

2020-10-29 Thread Alexander Zubkov
Hi, As far as I know, it should be possible: https://bird.network.cz/?get_doc=20=bird-5.html#type-set So you probably want something like: bgp_large_community.filter( [ (64496, *, *) ] ); On Thu, Oct 29, 2020 at 5:33 PM Brooks Swinnerton wrote: > > Hi Alexander, > > Yes, I think the example

Re: Delete all BGP communities except

2020-10-29 Thread Brooks Swinnerton
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 wrote: > Hello, > >

Re: Delete all BGP communities except

2020-10-29 Thread Alexander Zubkov
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 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

Delete all BGP communities except

2020-10-29 Thread Brooks Swinnerton
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