bio-routing / bio-rd

bio routing is a project to create a versatile, fast and reliable routing daemon in Golang. bio = BGP + IS-IS + OSPF
Apache License 2.0
283 stars 44 forks source link

fix: set AddPathLen for BGP Routes when received via grpc #471

Closed Istvan91 closed 2 months ago

Istvan91 commented 2 months ago

When using ris-mirror the routes weren't sorted by BestPath:

The ASPathLen value was not set when decoding BGP Paths from proto and defaulted back to zero => all routes where treated as having the same ASPathLen, regardless of the actual ASPath.

Istvan91 commented 2 months ago

fixed the corresponding test

taktv6 commented 2 months ago

Many thanks for troubleshooting and fixing this!