Adding more then one bgp community at once

Mikhail Grishin magr at ripn.net
Fri May 5 12:10:10 CEST 2023


Hi,

I tried the same at BIRD 2.13 . It reports  "Can't add set".

At the same time in docs
--
|add(/C/,/P/)| adds pair (or quad) /P/ to clist /C/ and returns the 
result. If item /P/ is already in clist /C/, it does nothing. /P/ may 
also be a clist, in that case all its members are added; i.e., it works 
as clist union.
---

What did I miss?

Ondrej Zajicek пишет 28.02.2017 3:49:
> On Mon, Feb 27, 2017 at 08:04:41AM +0000, Борис Коваленко wrote:
>> Hello!
>>
>>
>> Is this possible to add many communites at once?
>> bgp_community.add([(1,1), (1,2)]) is wrong "Setting clist attribute to
>> non-clist value"
> No, this is not implemented (although it makes sense). You have to add
> each community independently. But the code should generate a different
> error message ("Can't add set"), that seems like bug.
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20230505/494d5393/attachment.htm>


More information about the Bird-users mailing list