<div dir="ltr">Even using the correct syntax as described by Ondrej I am not able to get this to work. When I try, I get the following error in my logs:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace">filters, line 117: ~ applied on unknown type pair</font></blockquote><div><br></div><div>I am trying to build filters that check multiple things, add a community for each thing (if it is true), then reject the route if any of the communities exist. It doesn't seem like it's possible to check if any member of a set is in another set - only if a particular element is in another set.</div><div><br></div><div>I.e. I can do</div><div>(1,2,3) ~ bgp_large_community</div><div>but not</div><div>[(1,2,*)] ~ bgp_large_community</div><div><br></div><div>Can anyone confirm? Is this possible via a different method?</div><div><br></div><div>Thanks!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 29, 2020 at 2:49 PM Ondrej Zajicek <<a href="mailto:santiago@crfreenet.org">santiago@crfreenet.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Oct 29, 2020 at 10:00:58AM -0400, Brooks Swinnerton wrote:<br>
> Hello,<br>
> <br>
> I was wondering if it's possible to create a conditional that matches on a<br>
> wildcard for a part of a BGP large community. For example:<br>
> <br>
> if ([*, 600, 6939]) ~ bgp_large_community then<br>
> reject;<br>
<br>
Hello<br>
<br>
Note that it would be [(*, 600, 6939)], not ([*, 600, 6939]).<br>
<br>
But for large communities, BIRD allows wildcard only on the more specific part.<br>
You can have [(64496, 600, *)], [(64496, *, *)] or even [(*, *, *)], but not<br>
[(*, 600, 6939)].<br>
<br>
Also, wildcard (*, 600, 6939) does not really make sense, as meaning of<br>
the second and third part is determined by the first (global admin), and<br>
may be different for different first parts.<br>
<br>
-- <br>
Elen sila lumenn' omentielvo<br>
<br>
Ondrej 'Santiago' Zajicek (email: <a href="mailto:santiago@crfreenet.org" target="_blank">santiago@crfreenet.org</a>)<br>
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, <a href="http://wwwkeys.pgp.net" rel="noreferrer" target="_blank">wwwkeys.pgp.net</a>)<br>
"To err is human -- to blame it on a computer is even more so."<br>
</blockquote></div>