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"

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to