sorted route advertisements from bird bgp session.

gautham devalapalli gautham.csus at gmail.com
Tue Apr 7 23:14:40 CEST 2026


Hello,

When advertising the routes from BGP to an nxos switch, we are noticing the
routes come in random order instead of sequential order. I tried using
`sorted` option but doesnt seem to work.
Using bird 2.0.8 version.

Is there a way to force an order of routes like how Ixia traffic generator
does this.
ipv4 table ebgp1 sorted;;

protocol bgp ebgp_1_node01 {
local 10.0.0.2 as 65000;
neighbor 10.0.0.1 as 100;
ipv4 {
table ebgp1;
import none;
export where source = RTS_STATIC;
};
}

protocol static v4static{
ipv4 {
table ebgp1;
};
route 50.0.1.1/32 via 10.0.0.2;
route 50.0.1.2/32 via 10.0.0.2;
route 50.0.1.3/32 via 10.0.0.2;
route 50.0.1.4/32 via 10.0.0.2;
route 50.0.1.5/32 via 10.0.0.2;
route 50.0.1.6/32 via 10.0.0.2;
}


E_DEBUG [L3:TRACE l3_route.cpp: :hal_sone_l3_route_update_internal:4466]
Received route add for VRF 0x1, pfx 50.0.1.1/32, route_flags 0x0 src_lif
0x0(Lo: 'FALSE') ecmp_id 0x0 adj_id: 0x40000 myip 0 attr_cnt 1 mpls_ppfx 0
vrf_redir: 0
E_DEBUG [L3:TRACE l3_route.cpp: :hal_sone_l3_route_update_internal:4466]
Received route add for VRF 0x1, pfx 50.0.1.5/32, route_flags 0x0 src_lif
0x0(Lo: 'FALSE') ecmp_id 0x0 adj_id: 0x40000 myip 0 attr_cnt 1 mpls_ppfx 0
vrf_redir: 0
E_DEBUG [L3:TRACE l3_route.cpp: :hal_sone_l3_route_update_internal:4466]
Received route add for VRF 0x1, pfx 50.0.1.2/32, route_flags 0x0 src_lif
0x0(Lo: 'FALSE') ecmp_id 0x0 adj_id: 0x40000 myip 0 attr_cnt 1 mpls_ppfx 0
vrf_redir: 0
E_DEBUG [L3:TRACE l3_route.cpp: :hal_sone_l3_route_update_internal:4466]
Received route add for VRF 0x1, pfx 50.0.1.6/32, route_flags 0x0 src_lif
0x0(Lo: 'FALSE') ecmp_id 0x0 adj_id: 0x40000 myip 0 attr_cnt 1 mpls_ppfx 0
vrf_redir: 0
E_DEBUG [L3:TRACE l3_route.cpp: :hal_sone_l3_route_update_internal:4466]
Received route add for VRF 0x1, pfx 50.0.1.3/32, route_flags 0x0 src_lif
0x0(Lo: 'FALSE') ecmp_id 0x0 adj_id: 0x40000 myip 0 attr_cnt 1 mpls_ppfx 0
vrf_redir: 0
E_DEBUG [L3:TRACE l3_route.cpp: :hal_sone_l3_route_update_internal:4466]
Received route add for VRF 0x1, pfx 50.0.1.4/32, route_flags 0x0 src_lif
0x0(Lo: 'FALSE') ecmp_id 0x0 adj_id: 0x40000 myip 0 attr_cnt 1 mpls_ppfx 0
vrf_redir: 0

Sincerely
Gautham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20260407/e7c3fcd3/attachment.htm>


More information about the Bird-users mailing list