summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2024-12-17 17:15:27 +0100
committerGitHub <noreply@github.com>2024-12-17 17:15:27 +0100
commita3e0e4eb49492ca6f0b2a2d5c8bf397710a743e0 (patch)
tree5216dff556f4718614e8a0643c5945c77e12a6c8 /tests
parentMerge pull request #16830 from louis-6wind/fix-addpath-race (diff)
parentbgpd: Suppress redundant L3VNI delete processing (diff)
downloadfrr-a3e0e4eb49492ca6f0b2a2d5c8bf397710a743e0.tar.xz
frr-a3e0e4eb49492ca6f0b2a2d5c8bf397710a743e0.zip
Merge pull request #17526 from raja-rajasekar/rajasekarr/evpn_bp_and_optimizations_3864372_FINAL_upstream
EVPN L2VNI/L3VNI Optimize inline Global walk for remote route installations
Diffstat (limited to 'tests')
-rw-r--r--tests/topotests/evpn_type5_test_topo1/test_evpn_type5_chaos_topo1.py12
-rw-r--r--tests/topotests/evpn_type5_test_topo1/test_evpn_type5_topo1.py15
2 files changed, 26 insertions, 1 deletions
diff --git a/tests/topotests/evpn_type5_test_topo1/test_evpn_type5_chaos_topo1.py b/tests/topotests/evpn_type5_test_topo1/test_evpn_type5_chaos_topo1.py
index 45868663a..cb3104a52 100644
--- a/tests/topotests/evpn_type5_test_topo1/test_evpn_type5_chaos_topo1.py
+++ b/tests/topotests/evpn_type5_test_topo1/test_evpn_type5_chaos_topo1.py
@@ -21,6 +21,8 @@ import sys
import time
import pytest
import platform
+import functools
+from lib import topotest
from copy import deepcopy
@@ -539,6 +541,16 @@ def test_RT_verification_auto_p0(request):
result = create_vrf_cfg(tgen, topo, input_dict=input_dict_vni)
assert result is True, "Testcase {} :Failed \n Error: {}".format(tc_name, result)
+ expected = {"numL3Vnis": 0}
+ test_func = functools.partial(
+ topotest.router_json_cmp,
+ tgen.gears["e1"],
+ "show bgp l2vpn evpn vni json",
+ expected,
+ )
+ _, result = topotest.run_and_expect(test_func, None, count=5, wait=3)
+ assert result is None, "Testcase {} :Failed \n Error: {}".format(tc_name, result)
+
input_dict_2 = {}
for dut in ["e1"]:
temp = {dut: {"bgp": []}}
diff --git a/tests/topotests/evpn_type5_test_topo1/test_evpn_type5_topo1.py b/tests/topotests/evpn_type5_test_topo1/test_evpn_type5_topo1.py
index beb4de432..52181a75d 100644
--- a/tests/topotests/evpn_type5_test_topo1/test_evpn_type5_topo1.py
+++ b/tests/topotests/evpn_type5_test_topo1/test_evpn_type5_topo1.py
@@ -25,6 +25,8 @@ import sys
import time
import pytest
import platform
+import functools
+from lib import topotest
from copy import deepcopy
@@ -1124,7 +1126,6 @@ def test_active_standby_evpn_implementation_p1(request):
)
for addr_type in ADDR_TYPES:
-
logger.info("Verifying only ipv4 routes")
if addr_type != "ipv4":
continue
@@ -2050,6 +2051,18 @@ def test_bgp_attributes_for_evpn_address_family_p1(request, attribute):
tc_name, result
)
+ expected = {"numL3Vnis": 0}
+ test_func = functools.partial(
+ topotest.router_json_cmp,
+ tgen.gears["d1"],
+ "show bgp l2vpn evpn vni json",
+ expected,
+ )
+ _, result = topotest.run_and_expect(test_func, None, count=5, wait=3)
+ assert result is None, "Testcase {} :Failed \n Error: {}".format(
+ tc_name, result
+ )
+
input_dict_2 = {}
for dut in ["d1"]:
temp = {dut: {"bgp": []}}