]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: increase wait timer in TI-LFA topotest 14111/head
authorRenato Westphal <renato@opensourcerouting.org>
Sat, 29 Jul 2023 14:46:54 +0000 (11:46 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Sat, 29 Jul 2023 17:18:39 +0000 (14:18 -0300)
Starting from step 11, this topotest focuses on validating the TI-LFA
switchover functionality, where the backup nexthops are activated
after an adjacency expires, either with or without BFD.

Currently, the test checks the RIB shortly after the switchover using
a tight 5 seconds interval to ensure that the RIB update is due to the
switchover and not an SPF update (which is configured with an initial
delay of 15 seconds). However, it was observed that the kernel might
take longer than 5 seconds to install routes when the system is under
heavy load. To account for that, double the wait interval so that
this topotest will succeed even in those conditions.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
tests/topotests/isis_tilfa_topo1/test_isis_tilfa_topo1.py

index 2e1d009abe00b730b462e60214a19718a9c43c9a..e2bbf4588c391b445739ffedbe552fca50dc936f 100755 (executable)
@@ -818,19 +818,19 @@ def test_rt6_step11():
         rname,
         "show ip route isis json",
         outputs[rname][11]["show_ip_route.ref"],
-        count=10,
+        count=20,
     )
     router_compare_json_output(
         rname,
         "show ipv6 route isis json",
         outputs[rname][11]["show_ipv6_route.ref"],
-        count=10,
+        count=20,
     )
     router_compare_json_output(
         rname,
         "show mpls table json",
         outputs[rname][11]["show_mpls_table.ref"],
-        count=10,
+        count=20,
     )
 
 
@@ -1024,7 +1024,7 @@ def test_rt6_step14():
         rname,
         "show ip route isis json",
         outputs[rname][11]["show_ip_route.ref"],
-        count=10,
+        count=20,
     )
     router_compare_json_output(
         rname,
@@ -1037,7 +1037,7 @@ def test_rt6_step14():
         rname,
         "show mpls table json",
         outputs[rname][11]["show_mpls_table.ref"],
-        count=10,
+        count=20,
     )