mirror_frr/tests
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
..
bgpd bgpd: add bgp_labels hash 2024-06-05 13:11:29 +02:00
helpers *: remove sys/stat.h from zebra.h 2024-01-09 12:39:23 -05:00
isisd Revert "isisd: When the metric-type is configured as "wide", the IS-IS generates incorrect metric values for IPv4 directly connected routes." 2024-06-04 17:31:40 +03:00
lib tests: Extend prefix_sg print UT for IPv6 2024-05-31 10:27:22 -04:00
ospf6d ospf6d: Convert ospf6_lsa_unlock to a better api 2023-07-12 17:56:29 -04:00
ospfd *: remove sys/stat.h from zebra.h 2024-01-09 12:39:23 -05:00
topotests tests: rework isis_tilfa_topo1 to fix timing issues 2024-06-10 12:28:01 -03:00
zebra zebra, test: mark mpls label chunks as dynamic or static 2023-10-18 09:41:02 +02:00
.gitignore tests: Ignore test_darr for git 2023-07-08 22:41:34 +03:00
Makefile
pytest.ini tests: Exclude topotests from consideration 2018-11-27 20:22:10 -05:00
runtests.py *: reformat python files 2020-10-07 17:22:26 -04:00
subdir.am build: break up tests/subdir.am 2021-11-11 14:40:03 +01:00