community matching

Soha Jin soha at jin.sh
Thu May 9 08:05:58 CEST 2024


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 <bird-users-bounces at network.cz> On Behalf Of skanda
Sent: Thursday, May 9, 2024 1:29 PM
To: bird-users at network.cz
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

}

 �

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20240509/fee9ca55/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 7085 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20240509/fee9ca55/attachment.png>


More information about the Bird-users mailing list