Hi,

 �

You can take a look at https://bird.network.cz/?get_doc 
<https://bird.network.cz/?get_doc&v=20&f=bird-5.html#ss5.2> 
&v=20&f=bird-5.html#ss5.2, the pair/ec/lc set is for 
bgp_community/bgp_ext_community/bgp_large_community.

 �

6509:4804 is written as a pair of number, (6509,4804), in BIRD. In your 
example, you can write `bgp_community  ~ [(6509,4809), (6509,4810)]` to match 
any one of them. You can also use a range interval like `bgp_community ~ 
[(6509, 4809..4810)]`. 

 �

Regards,

Soha

 �

From: Bird-users <[email protected]> On Behalf Of skanda
Sent: Thursday, May 9, 2024 1:29 PM
To: [email protected]
Subject: community matching

 �

Hi Bird experts,

 �

If I want match two communities, how does the syntax works in bird ?

 �

standard communities to matched

6509:4804 and 6509:4810

 �

Is it like this 



 �

What are the pair inside the brackets means?

 �

Or 

 �

filter labips {

if (([(65001,4809, 4810)] ~ bgp_community) then

accept

}

 �

Reply via email to