Merge pull request #13377 from donaldsharp/ospf_dead_interval

tests: Increase the dead interval to be longer for neighbor testing
This commit is contained in:
Russ White 2023-05-02 10:25:46 -04:00 committed by GitHub
commit ccf08bda1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 10 deletions

View File

@ -18,7 +18,7 @@
"ospf": { "ospf": {
"area": "0.0.0.3", "area": "0.0.0.3",
"hello_interval": 1, "hello_interval": 1,
"dead_interval": 4, "dead_interval": 10,
"priority": 98 "priority": 98
} }
}, },
@ -27,7 +27,7 @@
"ospf": { "ospf": {
"area": "0.0.0.3", "area": "0.0.0.3",
"hello_interval": 1, "hello_interval": 1,
"dead_interval": 4, "dead_interval": 10,
"priority": 99 "priority": 99
} }
}, },
@ -36,7 +36,7 @@
"ospf": { "ospf": {
"area": "0.0.0.3", "area": "0.0.0.3",
"hello_interval": 1, "hello_interval": 1,
"dead_interval": 4, "dead_interval": 10,
"priority": 0 "priority": 0
} }
}, },
@ -45,7 +45,7 @@
"ospf": { "ospf": {
"area": "0.0.0.3", "area": "0.0.0.3",
"hello_interval": 1, "hello_interval": 1,
"dead_interval": 4, "dead_interval": 10,
"priority": 0 "priority": 0
} }
} }

View File

@ -196,8 +196,10 @@ def test_ospf_lan_tc1_p0(request):
result = verify_ospf_neighbor(tgen, topo, dut, input_dict, lan=True) result = verify_ospf_neighbor(tgen, topo, dut, input_dict, lan=True)
assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result) assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
step("Configure DR priority 100 on R0 and clear ospf neighbors " step(
"on all the routers.") "Configure DR priority 100 on R0 and clear ospf neighbors "
"on all the routers."
)
input_dict = { input_dict = {
"r0": { "r0": {
@ -233,8 +235,10 @@ def test_ospf_lan_tc1_p0(request):
result = verify_ospf_neighbor(tgen, topo, dut, input_dict, lan=True) result = verify_ospf_neighbor(tgen, topo, dut, input_dict, lan=True)
assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result) assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
step("Configure DR priority 150 on R0 and clear ospf neighbors " step(
"on all the routers.") "Configure DR priority 150 on R0 and clear ospf neighbors "
"on all the routers."
)
input_dict = { input_dict = {
"r0": { "r0": {
@ -489,7 +493,7 @@ def test_ospf_lan_tc2_p0(request):
"s1": { "s1": {
"ospf": { "ospf": {
"priority": 98, "priority": 98,
"timerDeadSecs": 4, "timerDeadSecs": 10,
"area": "0.0.0.3", "area": "0.0.0.3",
"mcastMemberOspfDesignatedRouters": True, "mcastMemberOspfDesignatedRouters": True,
"mcastMemberOspfAllRouters": True, "mcastMemberOspfAllRouters": True,