summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2022-06-21 20:44:33 +0200
committerGitHub <noreply@github.com>2022-06-21 20:44:33 +0200
commit3971e0292844d5133690e29292a36b13999a1e04 (patch)
treeb57ba3f81274eaa5c7ff5b210e3100c1e4ffe664 /tests
parentMerge pull request #11449 from Jafaral/ospf-readme (diff)
parenttests: Removing invalid step from ospf tests. (diff)
downloadfrr-3971e0292844d5133690e29292a36b13999a1e04.tar.xz
frr-3971e0292844d5133690e29292a36b13999a1e04.zip
Merge pull request #11448 from gpnaveen/ospf_scripts_stbl
tests: Removing invalid step from OSPF tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/topotests/ospf_basic_functionality/test_ospf_single_area.py87
1 files changed, 0 insertions, 87 deletions
diff --git a/tests/topotests/ospf_basic_functionality/test_ospf_single_area.py b/tests/topotests/ospf_basic_functionality/test_ospf_single_area.py
index c7ee723b3..21a7d8384 100644
--- a/tests/topotests/ospf_basic_functionality/test_ospf_single_area.py
+++ b/tests/topotests/ospf_basic_functionality/test_ospf_single_area.py
@@ -596,93 +596,6 @@ def test_ospf_hello_tc10_p0(request):
ospf_covergence
)
- step(" Configure hello timer = 65535")
- topo1 = {
- "r0": {
- "links": {
- "r1": {
- "interface": topo["routers"]["r0"]["links"]["r1"]["interface"],
- "ospf": {"hello_interval": 65535, "dead_interval": 4},
- }
- }
- }
- }
-
- result = create_interfaces_cfg(tgen, topo1)
- assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
-
- topo1 = {
- "r1": {
- "links": {
- "r0": {
- "interface": topo["routers"]["r1"]["links"]["r0"]["interface"],
- "ospf": {"hello_interval": 65535, "dead_interval": 4},
- }
- }
- }
- }
-
- result = create_interfaces_cfg(tgen, topo1)
- assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
-
- step("verify that new timer value is configured.")
- input_dict = {
- "r0": {
- "links": {"r1": {"ospf": {"timerMsecs": 65535 * 1000, "timerDeadSecs": 4}}}
- }
- }
- dut = "r0"
- result = verify_ospf_interface(tgen, topo, dut=dut, input_dict=input_dict)
- assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
-
- step("verify that ospf neighbours are full")
- ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
- assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
- ospf_covergence
- )
-
- step(" Try configuring timer values outside range for example 65536")
- topo1 = {
- "r0": {
- "links": {
- "r1": {
- "interface": topo["routers"]["r0"]["links"]["r1"]["interface"],
- "ospf": {"hello_interval": 65536, "dead_interval": 4},
- }
- }
- }
- }
-
- result = create_interfaces_cfg(tgen, topo1)
- assert result is not True, "Testcase {} : Failed \n Error: {}".format(
- tc_name, result
- )
-
- step("Unconfigure the hello timer from the interface from r1 and r2.")
-
- topo1 = {
- "r1": {
- "links": {
- "r0": {
- "interface": topo["routers"]["r1"]["links"]["r0"]["interface"],
- "ospf": {"hello_interval": 65535},
- "delete": True,
- }
- }
- }
- }
-
- result = create_interfaces_cfg(tgen, topo1)
- assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
-
- step(
- "Verify that timer value is deleted from intf & " "set to default value 40 sec."
- )
- input_dict = {"r1": {"links": {"r0": {"ospf": {"timerMsecs": 10 * 1000}}}}}
- dut = "r1"
- result = verify_ospf_interface(tgen, topo, dut=dut, input_dict=input_dict)
- assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
-
write_test_footer(tc_name)