Commit c5583f8c4c for frr
commit c5583f8c4c1266a79eb40fffe9c1001e7480ab8d
Author: Enke Chen <enchen@paloaltonetworks.com>
Date: Thu Oct 15 11:11:39 2026 -0700
tests: update topotests for complete as-path in advertised-routes
Update expected as-path values in advertised-routes output to include
the local AS, which is now prepended in the outbound adjacency:
- bgp_vpnv4_noretain: expect "65500" instead of "Local"
- bgp_soo: expect "65001 65001" instead of "65001"
- bgp_match_peer: expect "65001 65003" instead of "65003"
Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
diff --git a/tests/topotests/bgp_match_peer/test_bgp_match_peer.py b/tests/topotests/bgp_match_peer/test_bgp_match_peer.py
index 373fec8565..5f621701a7 100644
--- a/tests/topotests/bgp_match_peer/test_bgp_match_peer.py
+++ b/tests/topotests/bgp_match_peer/test_bgp_match_peer.py
@@ -91,7 +91,7 @@ def test_bgp_match_peer():
"10.0.0.3/32": {
"network": "10.0.0.3/32",
"nextHop": "192.168.1.3",
- "path": "65003",
+ "path": "65001 65003",
}
},
"totalPrefixCounter": 1,
diff --git a/tests/topotests/bgp_soo/test_bgp_soo.py b/tests/topotests/bgp_soo/test_bgp_soo.py
index b67de13063..952643bdb4 100644
--- a/tests/topotests/bgp_soo/test_bgp_soo.py
+++ b/tests/topotests/bgp_soo/test_bgp_soo.py
@@ -122,7 +122,7 @@ def test_bgp_soo():
"show bgp vrf RED ipv4 unicast neighbors 192.168.2.1 advertised-routes json"
)
)
- expected = {"advertisedRoutes": {"172.16.255.1/32": {"path": "65001"}}}
+ expected = {"advertisedRoutes": {"172.16.255.1/32": {"path": "65001 65001"}}}
return topotest.json_cmp(output, expected)
test_func = functools.partial(_bgp_soo_unconfigured)
diff --git a/tests/topotests/bgp_vpnv4_noretain/r1/ipv4_vpn_routes_advertised_10_125_0_2.json b/tests/topotests/bgp_vpnv4_noretain/r1/ipv4_vpn_routes_advertised_10_125_0_2.json
index e646d686e1..fd08ae75c0 100644
--- a/tests/topotests/bgp_vpnv4_noretain/r1/ipv4_vpn_routes_advertised_10_125_0_2.json
+++ b/tests/topotests/bgp_vpnv4_noretain/r1/ipv4_vpn_routes_advertised_10_125_0_2.json
@@ -14,9 +14,9 @@
},
"paths":[{
"aspath":{
- "string":"Local",
- "segments":[],
- "length":0
+ "string":"65500",
+ "segments":[{"type":"as-sequence","list":[65500]}],
+ "length":1
},
"nhVrfName":"vrf1",
"announceNexthopSelf":true,
@@ -59,9 +59,9 @@
},
"paths":[{
"aspath":{
- "string":"Local",
- "segments":[],
- "length":0
+ "string":"65500",
+ "segments":[{"type":"as-sequence","list":[65500]}],
+ "length":1
},
"nhVrfName":"vrf3",
"announceNexthopSelf":true,