Commit 4554ecb553 for frr

commit 4554ecb55318fe7441d65ec34f33b19e5b0bc38b
Author: Donald Sharp <sharpd@nvidia.com>
Date:   Thu Oct 22 10:20:22 2026 -0400

    tests: Ensure bestpath ordering in bgp_link_bw_ip

    This test assumes a specific ordering, let's ensure that
    that ordering is correct.

    Signed-off-by: Donald Sharp <sharpd@nvidia.com>

diff --git a/tests/topotests/bgp_link_bw_ip/r2/bgpd.conf b/tests/topotests/bgp_link_bw_ip/r2/bgpd.conf
index 0c0e859cab..0ceb0ff695 100644
--- a/tests/topotests/bgp_link_bw_ip/r2/bgpd.conf
+++ b/tests/topotests/bgp_link_bw_ip/r2/bgpd.conf
@@ -3,6 +3,11 @@ hostname r2
 router bgp 65201
  bgp router-id 11.1.2.1
  bgp bestpath as-path multipath-relax
+ ! Make bestpath deterministic: skip the oldest-path tie-break and fall through
+ ! to lowest router-id. r4 (11.1.4.1) therefore always beats r5 (11.1.5.1).
+ ! r5 sends link-bandwidth in the IPv6 extended community, r4 in the regular
+ ! one, and r2 -> r1 only rewrites the regular one, so r4 must be the best path.
+ bgp bestpath compare-routerid
  no bgp ebgp-requires-policy
  neighbor 11.1.1.1 remote-as external
  neighbor 11.1.1.1 timers 3 10