Commit db40ba4081 for frr
commit db40ba40815a8cff5b64db5b2932b6a75d864f0d
Author: Harini Nattamai Subramanian <hnattamaisub@nvidia.com>
Date: Mon Oct 26 03:00:53 2026 -0700
tests: changes in existing topotest based on existing behaviour
test_evpn_disable_routemap removed the route-map applied to Type-5
export on r2 by re-entering "advertise <afi> unicast" without it. That
relied on the advertise options being absolute, where omitting the
route-map cleared it.
The advertise options are now additive: omitting an option leaves it as
configured, and each option is removed through its own no form. The
bare re-entry therefore kept rmap4/rmap6 applied, and r1 never received
the prefixes the route-map filters.
Remove the route-map with "no advertise <afi> unicast route-map
RMAP_NAME" in both the IPv4 and IPv6 VTEP variants.
Signed-off-by: Harini Nattamai Subramanian <hnattamaisub@nvidia.com>
diff --git a/tests/topotests/bgp_evpn_rt5/test_bgp_evpn.py b/tests/topotests/bgp_evpn_rt5/test_bgp_evpn.py
index daaa97540a..0af852e638 100644
--- a/tests/topotests/bgp_evpn_rt5/test_bgp_evpn.py
+++ b/tests/topotests/bgp_evpn_rt5/test_bgp_evpn.py
@@ -447,8 +447,8 @@ def test_evpn_disable_routemap():
configure terminal
router bgp 65000 vrf vrf-101
address-family l2vpn evpn
- advertise ipv4 unicast
- advertise ipv6 unicast
+ no advertise ipv4 unicast route-map rmap4
+ no advertise ipv6 unicast route-map rmap6
"""
)
diff --git a/tests/topotests/bgp_evpn_rt5/test_bgp_evpn_v6_vtep.py b/tests/topotests/bgp_evpn_rt5/test_bgp_evpn_v6_vtep.py
index 6dc8c839f5..b38b433532 100644
--- a/tests/topotests/bgp_evpn_rt5/test_bgp_evpn_v6_vtep.py
+++ b/tests/topotests/bgp_evpn_rt5/test_bgp_evpn_v6_vtep.py
@@ -378,8 +378,8 @@ def test_evpn_disable_routemap():
configure terminal\n
router bgp 65000 vrf r2-vrf-101\n
address-family l2vpn evpn\n
- advertise ipv4 unicast\n
- advertise ipv6 unicast\n
+ no advertise ipv4 unicast route-map rmap4\n
+ no advertise ipv6 unicast route-map rmap6\n
"""
)
router = tgen.gears["r1"]