BIRD 3.1.x - "cli v2 attributes" - some attributes not shown in v2 format
Alexander Zubkov
green at qrator.net
Sun Sep 7 12:49:31 CEST 2025
Hi Rob,
Try the attached patch.
Regards,
Alexander
On Sun, Sep 7, 2025 at 11:29 AM Rob Lister <rob at lonap.net> wrote:
>
> Hello,
>
> I've enabled cli "/path/to/socket.ctl" { v2 attributes; } for backward
> compatibility, but
> it looks like some of the attributes are not displayed in the v2 format:
>
> (bgp_community and bgp_large_community)
>
>
> 91.xxx.xxx.xxx/22 unicast [pb_as65001_vli19999_ipv4 2025-09-06
> 22:35:27] * (100) [AS65002i]
> via 5.57.82.xx on eth1
> Type: BGP univ
> BGP.origin: IGP
> BGP.as_path: 65001 65002
> BGP.next_hop: 5.57.82.xx
> BGP.local_pref: 100
> bgp_community: (65001,1) (65001,64702)
> bgp_large_community: (8330, 1000, 1) (8330, 1001, 1)
>
>
> BIRD 2 shows it as:
>
> BGP.community:
> BGP.large_community:
>
>
> I searched the code and it's in
> https://gitlab.nic.cz/labs/bird/-/blob/v3.1.3/proto/bgp/attrs.c
>
> But I don't know any C, and it doesn't look like an "obvious" problem.
>
> But this file is more than 3000 lines of code. So I ran away and hid.
>
>
> Rob
>
>
> --
> Rob Lister
> rob at lonap.net
> +44 20 3137 8330
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20250907/dce305e3/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: legacy-attr-fix.patch
Type: application/x-patch
Size: 685 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20250907/dce305e3/attachment.bin>
More information about the Bird-users
mailing list