summaryrefslogtreecommitdiff
path: root/tests/topotests/zebra_rib/test_zebra_rib.py
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-10-10 10:56:51 -0400
committerDonald Sharp <sharpd@nvidia.com>2024-11-05 12:33:05 -0500
commit3e3a666331e1e44683b17ab1fd78afc47c5d2677 (patch)
tree502cc3516e8cc9ab55b3b58e89d09ae504a49b04 /tests/topotests/zebra_rib/test_zebra_rib.py
parentfe20f83286e103ba12f9cc83c7f30dec47c6d31c (diff)
lib: Add ability to track time in individual routemaps
Add the abilty to track how much time is spent in routemaps. Example of the new output: eva# show route-map ZEBRA: route-map: FOO Invoked: 1000000 (323 milliseconds total) Optimization: enabled Processed Change: false deny, sequence 10 Invoked 1000000 (320 milliseconds total) Match clauses: Set clauses: Call clause: Action: Exit routemap Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'tests/topotests/zebra_rib/test_zebra_rib.py')
-rw-r--r--tests/topotests/zebra_rib/test_zebra_rib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/topotests/zebra_rib/test_zebra_rib.py b/tests/topotests/zebra_rib/test_zebra_rib.py
index c0a79ed79d..d1aee46b40 100644
--- a/tests/topotests/zebra_rib/test_zebra_rib.py
+++ b/tests/topotests/zebra_rib/test_zebra_rib.py
@@ -246,6 +246,7 @@ def test_route_map_usage():
def check_static_map_correct_runs():
actual = r1.vtysh_cmd("show route-map static")
+ actual = re.sub(r"\([0-9].* milli", "(X milli", actual)
actual = ("\n".join(actual.splitlines()) + "\n").rstrip()
return topotest.get_textdiff(
actual,
@@ -266,6 +267,7 @@ def test_route_map_usage():
def check_sharp_map_correct_runs():
actual = r1.vtysh_cmd("show route-map sharp")
+ actual = re.sub(r"\([0-9].* milli", "(X milli", actual)
actual = ("\n".join(actual.splitlines()) + "\n").rstrip()
return topotest.get_textdiff(
actual,