bgp_large_community wildcard in conditional

Chriztoffer Hansen chriztoffer.hansen at de-cix.net
Thu Oct 29 16:34:35 CET 2020


On 29 Oct 2020 15:00, Brooks Swinnerton wrote:
> I was wondering if it's possible to create a conditional that matches on
> a wildcard for a part of a BGP large community. For example:
> 
> if ([*, 600, 6939]) ~ bgp_large_community then
>   reject;
> 
> This currently results in a syntax error at the position of the comma
> after the *.

as far as I know, It's possible when adding or removing communities to
use wildcard '*' char. Not entirely sure it's possible when matching in
conditional if() statement... ❔

https://github.com/coloclue/kees/blob/master/templates/filter.j2#L37-L43

Specifically for conditional if() statements I am only aware of the
possibility of using XOR matching condition for BGP communities.

Looking into the Docs for Bird 2. It seems to be possible.

https://bird.network.cz/?get_doc&v=20&f=bird-5.html#ss5.2
\--> sub-section: "int|pair|quad|ip|prefix|ec|lc|enum set"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4309 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20201029/998ac3ae/attachment.p7s>


More information about the Bird-users mailing list