mirror_frr/tests/topotests/isis_tilfa_topo1/rt2
Renato Westphal 04655c5f74 tests: rework isis_tilfa_topo1 to fix timing issues
In this topotest, steps 10-15 were added to test the IS-IS switchover
functionality. In short, two cases were tested: switchover after a
link down event and switchover after a BFD down event. Both cases
were tested in sequence on the same router, rt6. This involved the
following steps:
- Setting the SPF delay timer to 15 seconds
- Shutting down the eth-rt5 interface from the switch side
- Testing the post-switchover RIB and LIB (triggered by the link down
  event)
- Testing the post-SPF RIB and LIB
- Bringing the eth-rt5 interface back up
- Configuring a BFD session between rt6 and rt5
- Shutting down the eth-rt5 interface from the switch side once again
- Testing the post-switchover RIB and LIB (triggered by the BFD down
  event)
- Testing the post-SPF RIB and LIB

Since the time window to test the post-switchover RIB and LIB was too
narrow (10 seconds), these tests were having sporadic failures.

To resolve this problem, we can simplify the switchover test as follows:
- Setting the SPF delay timer to 60 seconds (not 15)
- Disabling "link-detect" on rt6's eth-rt5 interface
- Shutting down the eth-rt5 interface from the switch side
- On rt6, testing the post-switchover RIB and LIB (triggered by the
  BFD down event)
- On rt5, testing the post-switchover RIB and LIB (triggered by the
  link down event)

Notice how we can test both post-link-down and post-BFD-down switchover
cases simultaneously by having different "link-detect" configurations
on rt5 and rt6. Additionally, by using a larger SPF delay timer, the
time window to test the post-switchover RIB and LIB is much larger
and less prone to sporadic failures.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2024-06-10 12:28:01 -03:00
..
step1 tests: Convert isis to use 1 and 10 for hello/multiplier 2023-07-29 13:39:37 -04:00
step2 tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
step3 tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
step4 tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
step5 tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
step6 tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
step7 tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
step8 tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
step9 tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
isisd.conf tests: Convert isis to use 1 and 10 for hello/multiplier 2023-07-29 13:39:37 -04:00
zebra.conf tests: Convert isis to use 1 and 10 for hello/multiplier 2023-07-29 13:39:37 -04:00