mirror_frr/tests/topotests/ospf_basic_functionality
Donald Sharp 235f1ccd9b tests: test_ospf_lan.py is looking for a certain order enforce it
OSPF when converging will choose a DR / Backup DR based upon
who has already come up.  Irrelevant of priority.  As such if
under system load OSPF comes up first and elects a DR that under
normal circumstances not be the elected one due to priority
OSPF does not go back through and re-elect to keep the system
stable in this case.  Tests are experiencing this:

unet> r0 show ip ospf neigh

Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
100.1.1.1        99 Full/Backup     4m14s              3.780s 10.0.1.2        r0-s1-eth0:10.0.1.1                  0     0     0
100.1.1.2         0 Full/DROther    4m14s              3.848s 10.0.1.3        r0-s1-eth0:10.0.1.1                  0     0     0
100.1.1.3         0 Full/DROther    4m14s              3.912s 10.0.1.4        r0-s1-eth0:10.0.1.1                  0     0     0

unet> r1 show ip ospf neigh

Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
100.1.1.0        98 Full/DR         4m15s              3.011s 10.0.1.1        r1-s1-eth1:10.0.1.2                  0     0     0
100.1.1.2         0 Full/DROther    4m19s              3.124s 10.0.1.3        r1-s1-eth1:10.0.1.2                  0     0     0
100.1.1.3         0 Full/DROther    4m19s              3.188s 10.0.1.4        r1-s1-eth1:10.0.1.2                  0     0     0

unet> r2 show ip ospf neigh

Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
100.1.1.0        98 Full/DR         4m27s              3.483s 10.0.1.1        r2-s1-eth0:10.0.1.3                  0     0     0
100.1.1.1        99 Full/Backup     4m32s              3.527s 10.0.1.2        r2-s1-eth0:10.0.1.3                  0     0     0
100.1.1.3         0 2-Way/DROther   4m32s              3.660s 10.0.1.4        r2-s1-eth0:10.0.1.3                  0     0     0

unet> r3 show ip ospf neigh

Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
100.1.1.0        98 Full/DR         4m55s              3.786s 10.0.1.1        r3-s1-eth1:10.0.1.4                  0     0     0
100.1.1.1        99 Full/Backup     4m55s              3.829s 10.0.1.2        r3-s1-eth1:10.0.1.4                  0     0     0
100.1.1.2         0 2-Way/DROther   4m54s              3.897s 10.0.1.3        r3-s1-eth1:10.0.1.4                  0     0     0

Modify the test to do a clear to enforce the order we are specifically looking for.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-12-11 12:05:36 -05:00
..
ospf_asbr_summary_topo1.json tests : Adding 2 ospf asbr summary testcases. 2021-05-17 19:52:54 -07:00
ospf_asbr_summary_type7_lsa.json tests: Adding ospfv2 summarisation test cases. 2021-06-23 13:57:12 -07:00
ospf_authentication.json tests: ospf_basic_functionality topojson testcases. 2020-09-18 15:13:46 +05:30
ospf_chaos.json tests: Adding 3 ospf chaos testcases. 2021-01-21 04:55:58 +05:30
ospf_ecmp_lan.json tests: ospf_basic_functionality topojson testcases. 2020-09-18 15:13:46 +05:30
ospf_ecmp.json tests: ospf_basic_functionality topojson testcases. 2020-09-18 15:13:46 +05:30
ospf_lan.json tests: ospf_basic_functionality topojson testcases. 2020-09-18 15:13:46 +05:30
ospf_nssa.json tests: ospf_basic_functionality topojson testcases. 2020-09-18 15:13:46 +05:30
ospf_p2mp.json tests: Adding ospf p2mp basic test. 2021-01-12 09:28:50 +05:30
ospf_routemaps.json tests: ospf_basic_functionality topojson testcases. 2020-09-18 15:13:46 +05:30
ospf_rte_calc.json tests: ospf_basic_functionality topojson testcases. 2020-09-18 15:13:46 +05:30
ospf_single_area.json tests: ospf_basic_functionality topojson testcases. 2020-09-18 15:13:46 +05:30
test_ospf_asbr_summary_topo1.py tests: Fix ospf_asbr_summary_topo1.py 2021-10-15 11:43:44 -04:00
test_ospf_asbr_summary_type7_lsa.py tests: cleanup - remove unused imports 2021-09-04 09:04:47 -04:00
test_ospf_authentication.py tests: cleanup - remove unused imports 2021-09-04 09:04:47 -04:00
test_ospf_chaos.py tests: cleanup: rerun changed files through black 2021-09-04 09:04:47 -04:00
test_ospf_ecmp_lan.py tests: cleanup - remove unused imports 2021-09-04 09:04:47 -04:00
test_ospf_ecmp.py tests: cleanup - remove unused imports 2021-09-04 09:04:47 -04:00
test_ospf_lan.py tests: test_ospf_lan.py is looking for a certain order enforce it 2021-12-11 12:05:36 -05:00
test_ospf_nssa.py tests: cleanup - remove unused imports 2021-09-04 09:04:47 -04:00
test_ospf_p2mp.py tests: cleanup - remove unused imports 2021-09-04 09:04:47 -04:00
test_ospf_routemaps.py tests: cleanup: rerun changed files through black 2021-09-04 09:04:47 -04:00
test_ospf_rte_calc.py tests: cleanup - remove unused imports 2021-09-04 09:04:47 -04:00
test_ospf_single_area.py tests: cleanup - remove unused imports 2021-09-04 09:04:47 -04:00