mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
tests: [topojson] Update assert/error messages
Few assert/error messages are updated for test scripts for better debugging. Signed-off-by: nguggarigoud <nguggarigoud@vmware.com>
This commit is contained in:
parent
2273550f04
commit
74dd0c84db
File diff suppressed because it is too large
Load Diff
@ -145,7 +145,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -248,11 +248,9 @@ def test_ospf_type5_summary_tc44_p0(request):
|
||||
result = verify_rib(tgen, "ipv4", dut, input_dict_static_rtes, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed. Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step(
|
||||
"Configure External Route summary in R0 to summarise 5" " routes to one route."
|
||||
)
|
||||
step("Configure External Route summary in R0 to summarise 5 routes to one route.")
|
||||
|
||||
ospf_summ_r0 = {
|
||||
"r0": {
|
||||
@ -272,9 +270,7 @@ def test_ospf_type5_summary_tc44_p0(request):
|
||||
"route is sent to R1."
|
||||
)
|
||||
|
||||
step(
|
||||
"Configure summary & redistribute static/connected route with " "metric type 2"
|
||||
)
|
||||
step("Configure summary & redistribute static/connected route with metric type 2")
|
||||
|
||||
input_dict_summary = {"r0": {"static_routes": [{"network": SUMMARY["ipv4"][3]}]}}
|
||||
dut = "r1"
|
||||
@ -285,7 +281,7 @@ def test_ospf_type5_summary_tc44_p0(request):
|
||||
result = verify_rib(tgen, "ipv4", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed. Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step("Verify that show ip ospf summary should show the summaries.")
|
||||
input_dict = {
|
||||
@ -301,7 +297,7 @@ def test_ospf_type5_summary_tc44_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed. Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Learn type 7 lsa from neighbours")
|
||||
|
||||
@ -325,7 +321,7 @@ def test_ospf_type5_summary_tc44_p0(request):
|
||||
result = verify_rib(tgen, "ipv4", dut, input_dict_static_rtes, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed. Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
ospf_summ_r0 = {
|
||||
"r0": {
|
||||
@ -353,7 +349,7 @@ def test_ospf_type5_summary_tc44_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed. Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Verify that already originated summary is intact.")
|
||||
input_dict = {
|
||||
@ -369,7 +365,7 @@ def test_ospf_type5_summary_tc44_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed. Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
dut = "r1"
|
||||
aggr_timer = {"r1": {"ospf": {"aggr_timer": 6}}}
|
||||
|
@ -113,7 +113,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -179,7 +179,7 @@ def test_ospf_authentication_simple_pass_tc28_p1(request):
|
||||
step("Verify that the neighbour is not FULL between R1 and R2.")
|
||||
dut = "r1"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut, expected=False)
|
||||
assert ospf_covergence is not True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is not True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -205,7 +205,7 @@ def test_ospf_authentication_simple_pass_tc28_p1(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -236,7 +236,7 @@ def test_ospf_authentication_simple_pass_tc28_p1(request):
|
||||
ospf_covergence = verify_ospf_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=10
|
||||
)
|
||||
assert ospf_covergence is not True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is not True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -258,7 +258,7 @@ def test_ospf_authentication_simple_pass_tc28_p1(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -273,7 +273,7 @@ def test_ospf_authentication_simple_pass_tc28_p1(request):
|
||||
"show ip ospf neighbor cmd."
|
||||
)
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut, expected=False)
|
||||
assert ospf_covergence is not True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is not True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -287,7 +287,7 @@ def test_ospf_authentication_simple_pass_tc28_p1(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -327,7 +327,7 @@ def test_ospf_authentication_simple_pass_tc28_p1(request):
|
||||
|
||||
dut = "r1"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -374,7 +374,7 @@ def test_ospf_authentication_md5_tc29_p1(request):
|
||||
ospf_covergence = verify_ospf_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=6
|
||||
)
|
||||
assert ospf_covergence is not True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is not True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -406,7 +406,7 @@ def test_ospf_authentication_md5_tc29_p1(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -439,7 +439,7 @@ def test_ospf_authentication_md5_tc29_p1(request):
|
||||
ospf_covergence = verify_ospf_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=10
|
||||
)
|
||||
assert ospf_covergence is not True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is not True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -467,7 +467,7 @@ def test_ospf_authentication_md5_tc29_p1(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -482,7 +482,7 @@ def test_ospf_authentication_md5_tc29_p1(request):
|
||||
"show ip ospf neighbor cmd."
|
||||
)
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut, expected=False)
|
||||
assert ospf_covergence is not True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is not True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -496,7 +496,7 @@ def test_ospf_authentication_md5_tc29_p1(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -541,7 +541,7 @@ def test_ospf_authentication_md5_tc29_p1(request):
|
||||
|
||||
dut = "r1"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -589,7 +589,7 @@ def test_ospf_authentication_different_auths_tc30_p1(request):
|
||||
ospf_covergence = verify_ospf_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=10
|
||||
)
|
||||
assert ospf_covergence is not True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is not True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -621,7 +621,7 @@ def test_ospf_authentication_different_auths_tc30_p1(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -668,7 +668,7 @@ def test_ospf_authentication_different_auths_tc30_p1(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -700,7 +700,7 @@ def test_ospf_authentication_different_auths_tc30_p1(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -733,7 +733,7 @@ def test_ospf_authentication_different_auths_tc30_p1(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -778,7 +778,7 @@ def test_ospf_authentication_different_auths_tc30_p1(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -823,7 +823,7 @@ def test_ospf_authentication_different_auths_tc30_p1(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
|
@ -124,7 +124,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -190,7 +190,7 @@ def test_ospf_chaos_tc31_p1(request):
|
||||
step("Verify OSPF neighbors after base config is done.")
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -211,7 +211,7 @@ def test_ospf_chaos_tc31_p1(request):
|
||||
dut = "r0"
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut, expected=False)
|
||||
assert ospf_covergence is not True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is not True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -221,7 +221,7 @@ def test_ospf_chaos_tc31_p1(request):
|
||||
result = verify_ospf_rib(tgen, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: OSPF routes are present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: OSPF routes are present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -230,7 +230,7 @@ def test_ospf_chaos_tc31_p1(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: routes are still present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: routes are still present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -240,7 +240,7 @@ def test_ospf_chaos_tc31_p1(request):
|
||||
step("Verify OSPF neighbors are up after bringing back ospfd in R0")
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -263,7 +263,7 @@ def test_ospf_chaos_tc31_p1(request):
|
||||
dut = "r1"
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut, expected=False)
|
||||
assert ospf_covergence is not True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is not True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -273,7 +273,7 @@ def test_ospf_chaos_tc31_p1(request):
|
||||
step("Verify OSPF neighbors are up after bringing back ospfd in R1")
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -329,7 +329,7 @@ def test_ospf_chaos_tc32_p1(request):
|
||||
step("Verify OSPF neighbors after base config is done.")
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -351,7 +351,7 @@ def test_ospf_chaos_tc32_p1(request):
|
||||
step("Verify OSPF neighbors are up after restarting R0")
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -374,7 +374,7 @@ def test_ospf_chaos_tc32_p1(request):
|
||||
step("Verify OSPF neighbors are up after restarting R1")
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -434,7 +434,7 @@ def test_ospf_chaos_tc34_p1(request):
|
||||
step("Verify OSPF neighbors after base config is done.")
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -457,7 +457,7 @@ def test_ospf_chaos_tc34_p1(request):
|
||||
result = verify_ospf_rib(tgen, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: OSPF routes are present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: OSPF routes are present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -466,7 +466,7 @@ def test_ospf_chaos_tc34_p1(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: routes are still present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: routes are still present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -476,7 +476,7 @@ def test_ospf_chaos_tc34_p1(request):
|
||||
step("Verify OSPF neighbors are up after bringing back ospfd in R0")
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -501,7 +501,7 @@ def test_ospf_chaos_tc34_p1(request):
|
||||
step("Verify OSPF neighbors are up after bringing back ospfd in R1")
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
|
@ -127,7 +127,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -181,7 +181,7 @@ def test_ospf_ecmp_tc16_p0(request):
|
||||
step("Verify that OSPF is up with 8 neighborship sessions.")
|
||||
dut = "r1"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -230,7 +230,7 @@ def test_ospf_ecmp_tc16_p0(request):
|
||||
result = verify_ospf_rib(tgen, dut, input_dict, next_hop=nh, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: OSPF routes are present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: OSPF routes are present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -240,7 +240,7 @@ def test_ospf_ecmp_tc16_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: routes are still present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: routes are still present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -272,7 +272,7 @@ def test_ospf_ecmp_tc16_p0(request):
|
||||
step("Verify that OSPF is up with 8 neighborship sessions.")
|
||||
dut = "r1"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -299,7 +299,7 @@ def test_ospf_ecmp_tc16_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: OSPF routes are present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: OSPF routes are present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -316,7 +316,7 @@ def test_ospf_ecmp_tc16_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: routes are still present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: routes are still present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -356,7 +356,7 @@ def test_ospf_ecmp_tc17_p0(request):
|
||||
step("Verify that OSPF is up with 2 neighborship sessions.")
|
||||
dut = "r1"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -407,7 +407,7 @@ def test_ospf_ecmp_tc17_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: OSPF routes are present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: OSPF routes are present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -424,7 +424,7 @@ def test_ospf_ecmp_tc17_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: routes are still present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: routes are still present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
|
@ -128,7 +128,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, lan=True)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -182,7 +182,7 @@ def test_ospf_lan_ecmp_tc18_p0(request):
|
||||
step("Verify that OSPF is up with 8 neighborship sessions.")
|
||||
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, lan=True)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -235,7 +235,7 @@ def test_ospf_lan_ecmp_tc18_p0(request):
|
||||
|
||||
dut = "r0"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut, lan=True)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -244,7 +244,7 @@ def test_ospf_lan_ecmp_tc18_p0(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, dut=dut, lan=True)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -274,7 +274,7 @@ def test_ospf_lan_ecmp_tc18_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: OSPF routes are present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: OSPF routes are present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -291,7 +291,7 @@ def test_ospf_lan_ecmp_tc18_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: routes are still present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: routes are still present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
|
@ -127,7 +127,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, lan=True)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -209,9 +209,7 @@ def test_ospf_lan_tc1_p0(request):
|
||||
result = verify_ospf_neighbor(tgen, topo, dut, input_dict, lan=True)
|
||||
assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
|
||||
|
||||
step(
|
||||
"Configure DR pririty 100 on R0 and clear ospf neighbors " "on all the routers."
|
||||
)
|
||||
step("Configure DR pririty 100 on R0 and clear ospf neighbors on all the routers.")
|
||||
|
||||
input_dict = {
|
||||
"r0": {
|
||||
@ -247,9 +245,7 @@ def test_ospf_lan_tc1_p0(request):
|
||||
result = verify_ospf_neighbor(tgen, topo, dut, input_dict, lan=True)
|
||||
assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
|
||||
|
||||
step(
|
||||
"Configure DR pririty 150 on R0 and clear ospf neighbors " "on all the routers."
|
||||
)
|
||||
step("Configure DR pririty 150 on R0 and clear ospf neighbors on all the routers.")
|
||||
|
||||
input_dict = {
|
||||
"r0": {
|
||||
@ -368,7 +364,7 @@ def test_ospf_lan_tc1_p0(request):
|
||||
result = verify_ospf_neighbor(tgen, topo, dut, lan=True, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r0: OSPF neighbors-hip is up \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r0: OSPF neighbors-hip is up \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
|
@ -125,7 +125,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -233,11 +233,11 @@ def test_ospf_learning_tc15_p0(request):
|
||||
assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
|
||||
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
step("Change area 1 as non nssa area (on the fly changing area" " type on DUT).")
|
||||
step("Change area 1 as non nssa area (on the fly changing area type on DUT).")
|
||||
|
||||
for rtr in ["r1", "r2", "r3"]:
|
||||
input_dict = {
|
||||
|
@ -140,7 +140,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -214,9 +214,7 @@ def test_ospf_routemaps_functionality_tc19_p0(request):
|
||||
|
||||
redistribute_ospf(tgen, topo, "r0", "static", delete=True)
|
||||
|
||||
step(
|
||||
"Create prefix-list in R0 to permit 10.0.20.1/32 prefix &" " deny 10.0.20.2/32"
|
||||
)
|
||||
step("Create prefix-list in R0 to permit 10.0.20.1/32 prefix & deny 10.0.20.2/32")
|
||||
|
||||
# Create ip prefix list
|
||||
pfx_list = {
|
||||
@ -307,7 +305,7 @@ def test_ospf_routemaps_functionality_tc19_p0(request):
|
||||
result = verify_ospf_rib(tgen, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: OSPF routes are present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: OSPF routes are present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -316,7 +314,7 @@ def test_ospf_routemaps_functionality_tc19_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: routes are present in fib \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: routes are present in fib \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -360,7 +358,7 @@ def test_ospf_routemaps_functionality_tc19_p0(request):
|
||||
result = verify_ospf_rib(tgen, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: OSPF routes are present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: OSPF routes are present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -369,7 +367,7 @@ def test_ospf_routemaps_functionality_tc19_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: OSPF routes are present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: OSPF routes are present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -417,7 +415,7 @@ def test_ospf_routemaps_functionality_tc19_p0(request):
|
||||
result = verify_ospf_rib(tgen, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: OSPF routes are present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: OSPF routes are present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -426,7 +424,7 @@ def test_ospf_routemaps_functionality_tc19_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: routes are still present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: routes are still present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -477,7 +475,7 @@ def test_ospf_routemaps_functionality_tc20_p0(request):
|
||||
result = verify_ospf_rib(tgen, dut, input_dict, retry_timeout=4, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: OSPF routes are present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: OSPF routes are present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -492,7 +490,7 @@ def test_ospf_routemaps_functionality_tc20_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: routes are still present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: routes are still present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -512,7 +510,7 @@ def test_ospf_routemaps_functionality_tc20_p0(request):
|
||||
result = verify_ospf_rib(tgen, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: OSPF routes are present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: OSPF routes are present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -521,7 +519,7 @@ def test_ospf_routemaps_functionality_tc20_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: routes are still present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: routes are still present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -536,7 +534,7 @@ def test_ospf_routemaps_functionality_tc20_p0(request):
|
||||
result = verify_ospf_rib(tgen, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: OSPF routes are present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: OSPF routes are present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -545,7 +543,7 @@ def test_ospf_routemaps_functionality_tc20_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: routes are still present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: routes are still present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -566,7 +564,7 @@ def test_ospf_routemaps_functionality_tc20_p0(request):
|
||||
result = verify_ospf_rib(tgen, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: OSPF routes are present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: OSPF routes are present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -575,7 +573,7 @@ def test_ospf_routemaps_functionality_tc20_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n " "r1: routes are still present \n Error: {}".format(
|
||||
), "Testcase {} : Failed \n r1: routes are still present \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -874,7 +872,7 @@ def test_ospf_routemaps_functionality_tc24_p0(request):
|
||||
result = verify_prefix_lists(tgen, pfx_list)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Prefix list not " "present. Error: {}".format(
|
||||
), "Testcase {} : Failed \n Prefix list not present. Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -943,7 +941,7 @@ def test_ospf_routemaps_functionality_tc24_p0(request):
|
||||
result = verify_prefix_lists(tgen, pfx_list)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Prefix list not " "present. Error: {}".format(
|
||||
), "Testcase {} : Failed \n Prefix list not present. Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -1091,7 +1089,7 @@ def test_ospf_routemaps_functionality_tc25_p0(request):
|
||||
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
|
@ -136,7 +136,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -184,7 +184,7 @@ def test_ospf_redistribution_tc5_p0(request):
|
||||
|
||||
step("Verify that OSPF neighbors are FULL.")
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -308,7 +308,7 @@ def test_ospf_redistribution_tc6_p0(request):
|
||||
|
||||
step("Verify that OSPF neighbors are FULL.")
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -537,7 +537,7 @@ def test_ospf_redistribution_tc8_p1(request):
|
||||
step("Verify that OSPF neighbours are reset and forms new adjacencies.")
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -571,7 +571,7 @@ def test_ospf_rfc2328_appendinxE_p0(request):
|
||||
step("Verify that OSPF neighbours are Full.")
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
|
@ -121,7 +121,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -371,7 +371,7 @@ def test_ospf_p2p_tc3_p0(request):
|
||||
|
||||
# Api call verify whether BGP is converged
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -453,7 +453,7 @@ def test_ospf_hello_tc10_p0(request):
|
||||
|
||||
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(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -499,7 +499,7 @@ def test_ospf_hello_tc10_p0(request):
|
||||
|
||||
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(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -545,7 +545,7 @@ def test_ospf_hello_tc10_p0(request):
|
||||
|
||||
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(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -588,7 +588,7 @@ def test_ospf_hello_tc10_p0(request):
|
||||
|
||||
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(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -610,7 +610,7 @@ def test_ospf_show_p1(request):
|
||||
reset_config_on_routers(tgen)
|
||||
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
dut = "r1"
|
||||
@ -703,7 +703,7 @@ def test_ospf_dead_tc11_p0(request):
|
||||
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("modify dead interval from default value to r1" "dead interval timer on r2")
|
||||
step("modify dead interval from default value to r1 dead interval timer on r2")
|
||||
|
||||
topo1 = {
|
||||
"r0": {
|
||||
@ -727,11 +727,11 @@ def test_ospf_dead_tc11_p0(request):
|
||||
|
||||
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(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
step("reconfigure the default dead interval timer value to " "default on r1 and r2")
|
||||
step("reconfigure the default dead interval timer value to default on r1 and r2")
|
||||
topo1 = {
|
||||
"r0": {
|
||||
"links": {
|
||||
@ -768,7 +768,7 @@ def test_ospf_dead_tc11_p0(request):
|
||||
|
||||
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(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -810,7 +810,7 @@ def test_ospf_dead_tc11_p0(request):
|
||||
|
||||
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(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -848,9 +848,7 @@ def test_ospf_dead_tc11_p0(request):
|
||||
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."
|
||||
)
|
||||
step("Verify that timer value is deleted from intf & set to default value 40 sec.")
|
||||
input_dict = {"r1": {"links": {"r0": {"ospf": {"timerDeadSecs": 40}}}}}
|
||||
dut = "r1"
|
||||
result = verify_ospf_interface(tgen, topo, dut=dut, input_dict=input_dict)
|
||||
@ -896,18 +894,14 @@ def test_ospf_tc4_mtu_ignore_p0(request):
|
||||
|
||||
clear_ospf(tgen, "r0")
|
||||
|
||||
step(
|
||||
"Verify that OSPF neighborship between R0 and R1 is stuck in Exstart" " State."
|
||||
)
|
||||
step("Verify that OSPF neighborship between R0 and R1 is stuck in Exstart State.")
|
||||
result = verify_ospf_neighbor(tgen, topo, expected=False)
|
||||
assert result is not True, (
|
||||
"Testcase {} : Failed \n OSPF nbrs are Full "
|
||||
"instead of Exstart. Error: {}".format(tc_name, result)
|
||||
)
|
||||
|
||||
step(
|
||||
"Verify that configured MTU value is updated in the show ip " "ospf interface."
|
||||
)
|
||||
step("Verify that configured MTU value is updated in the show ip ospf interface.")
|
||||
|
||||
dut = "r0"
|
||||
input_dict = {"r0": {"links": {"r1": {"ospf": {"mtuBytes": 1200}}}}}
|
||||
@ -964,9 +958,7 @@ def test_ospf_tc4_mtu_ignore_p0(request):
|
||||
|
||||
clear_ospf(tgen, "r0")
|
||||
|
||||
step(
|
||||
"Verify that OSPF neighborship between R0 and R1 is stuck in Exstart" " State."
|
||||
)
|
||||
step("Verify that OSPF neighborship between R0 and R1 is stuck in Exstart State.")
|
||||
result = verify_ospf_neighbor(tgen, topo, expected=False)
|
||||
assert result is not True, (
|
||||
"Testcase {} : Failed \n OSPF nbrs are Full "
|
||||
@ -983,9 +975,7 @@ def test_ospf_tc4_mtu_ignore_p0(request):
|
||||
result = verify_ospf_neighbor(tgen, topo)
|
||||
assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
|
||||
|
||||
step(
|
||||
"Configure ospf interface with jumbo MTU (9216)." "Reset ospf neighbors on R0."
|
||||
)
|
||||
step("Configure ospf interface with jumbo MTU (9216). Reset ospf neighbors on R0.")
|
||||
|
||||
rtr0.run("ip link set {} mtu 9216".format(r0_r1_intf))
|
||||
rtr1.run("ip link set {} mtu 9216".format(r1_r0_intf))
|
||||
|
@ -132,7 +132,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, lan=True)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -195,9 +195,9 @@ def test_ospf_gr_helper_tc1_p0(request):
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, lan=True)
|
||||
assert (
|
||||
ospf_covergence is True
|
||||
), "OSPF is not after reset config \n Error:" " {}".format(ospf_covergence)
|
||||
), "OSPF is not after reset config \n Error: {}".format(ospf_covergence)
|
||||
|
||||
step("Verify that GR helper route is disabled by default to the in" "the DUT.")
|
||||
step("Verify that GR helper route is disabled by default to the in the DUT.")
|
||||
input_dict = {
|
||||
"helperSupport": "Disabled",
|
||||
"strictLsaCheck": "Enabled",
|
||||
@ -208,7 +208,7 @@ def test_ospf_gr_helper_tc1_p0(request):
|
||||
result = verify_ospf_gr_helper(tgen, topo, dut, input_dict)
|
||||
assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
|
||||
|
||||
step("Verify that DUT does not enter helper mode upon receiving the " "grace lsa.")
|
||||
step("Verify that DUT does not enter helper mode upon receiving the grace lsa.")
|
||||
|
||||
# send grace lsa
|
||||
scapy_send_raw_packet(tgen, topo, "r1", intf1, pkt)
|
||||
@ -218,7 +218,7 @@ def test_ospf_gr_helper_tc1_p0(request):
|
||||
result = verify_ospf_gr_helper(tgen, topo, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed. DUT entered helper role " " \n Error: {}".format(
|
||||
), "Testcase {} : Failed. DUT entered helper role \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -247,7 +247,7 @@ def test_ospf_gr_helper_tc1_p0(request):
|
||||
assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
|
||||
|
||||
step("Perform GR in RR.")
|
||||
step("Verify that DUT does enter helper mode upon receiving" " the grace lsa.")
|
||||
step("Verify that DUT does enter helper mode upon receiving the grace lsa.")
|
||||
input_dict = {"activeRestarterCnt": 1}
|
||||
gracelsa_sent = False
|
||||
repeat = 0
|
||||
@ -290,7 +290,7 @@ def test_ospf_gr_helper_tc1_p0(request):
|
||||
result = create_router_ospf(tgen, topo, ospf_gr_r0)
|
||||
assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
|
||||
|
||||
step("Verify that DUT does enter helper mode upon receiving" " the grace lsa.")
|
||||
step("Verify that DUT does enter helper mode upon receiving the grace lsa.")
|
||||
input_dict = {"activeRestarterCnt": 1}
|
||||
gracelsa_sent = False
|
||||
repeat = 0
|
||||
@ -319,7 +319,7 @@ def test_ospf_gr_helper_tc1_p0(request):
|
||||
result = create_router_ospf(tgen, topo, ospf_gr_r0)
|
||||
assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
|
||||
|
||||
step("Verify that GR helper router is disabled in the DUT for" " router id x.x.x.x")
|
||||
step("Verify that GR helper router is disabled in the DUT for router id x.x.x.x")
|
||||
input_dict = {"enabledRouterIds": [{"routerId": "1.1.1.1"}]}
|
||||
dut = "r0"
|
||||
result = verify_ospf_gr_helper(tgen, topo, dut, input_dict, expected=False)
|
||||
@ -356,7 +356,7 @@ def test_ospf_gr_helper_tc2_p0(request):
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, lan=True)
|
||||
assert (
|
||||
ospf_covergence is True
|
||||
), "OSPF is not after reset config \n Error:" " {}".format(ospf_covergence)
|
||||
), "OSPF is not after reset config \n Error: {}".format(ospf_covergence)
|
||||
ospf_gr_r0 = {
|
||||
"r0": {"ospf": {"graceful-restart": {"helper enable": [], "opaque": True}}}
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, lan=True)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -201,10 +201,8 @@ def test_ospf_gr_helper_tc3_p1(request):
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, lan=True)
|
||||
assert (
|
||||
ospf_covergence is True
|
||||
), "OSPF is not after reset config \n Error:" " {}".format(ospf_covergence)
|
||||
step(
|
||||
"Configure DR pririty 100 on R0 and clear ospf neighbors " "on all the routers."
|
||||
)
|
||||
), "OSPF is not after reset config \n Error: {}".format(ospf_covergence)
|
||||
step("Configure DR pririty 100 on R0 and clear ospf neighbors on all the routers.")
|
||||
|
||||
input_dict = {
|
||||
"r0": {
|
||||
@ -295,10 +293,8 @@ def test_ospf_gr_helper_tc4_p1(request):
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, lan=True)
|
||||
assert (
|
||||
ospf_covergence is True
|
||||
), "OSPF is not after reset config \n Error:" " {}".format(ospf_covergence)
|
||||
step(
|
||||
"Configure DR pririty 100 on R0 and clear ospf neighbors " "on all the routers."
|
||||
)
|
||||
), "OSPF is not after reset config \n Error: {}".format(ospf_covergence)
|
||||
step("Configure DR pririty 100 on R0 and clear ospf neighbors on all the routers.")
|
||||
|
||||
input_dict = {
|
||||
"r0": {
|
||||
|
@ -132,7 +132,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, lan=True)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -206,7 +206,7 @@ def test_ospf_gr_helper_tc7_p1(request):
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, lan=True)
|
||||
assert (
|
||||
ospf_covergence is True
|
||||
), "OSPF is not after reset config \n Error:" " {}".format(ospf_covergence)
|
||||
), "OSPF is not after reset config \n Error: {}".format(ospf_covergence)
|
||||
ospf_gr_r0 = {
|
||||
"r0": {"ospf": {"graceful-restart": {"helper enable": [], "opaque": True}}}
|
||||
}
|
||||
@ -234,7 +234,7 @@ def test_ospf_gr_helper_tc7_p1(request):
|
||||
result = verify_ospf_gr_helper(tgen, topo, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed. DUT entered helper role " " \n Error: {}".format(
|
||||
), "Testcase {} : Failed. DUT entered helper role \n Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -266,7 +266,7 @@ def test_ospf_gr_helper_tc8_p1(request):
|
||||
ospf_covergence = verify_ospf_neighbor(tgen, topo, lan=True)
|
||||
assert (
|
||||
ospf_covergence is True
|
||||
), "OSPF is not after reset config \n Error:" " {}".format(ospf_covergence)
|
||||
), "OSPF is not after reset config \n Error: {}".format(ospf_covergence)
|
||||
ospf_gr_r0 = {
|
||||
"r0": {"ospf": {"graceful-restart": {"helper enable": [], "opaque": True}}}
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -293,7 +293,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_static_rtes, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step(
|
||||
"Configure External Route summary in R0 to summarise 5"
|
||||
@ -327,7 +327,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step("Verify that show ip ospf summary should show the summaries.")
|
||||
input_dict = {
|
||||
@ -343,9 +343,9 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Verify that originally advertised routes are withdraw from there" " peer.")
|
||||
step("Verify that originally advertised routes are withdraw from there peer.")
|
||||
input_dict = {
|
||||
"r0": {"static_routes": [{"network": NETWORK["ipv6"], "next_hop": "blackhole"}]}
|
||||
}
|
||||
@ -353,7 +353,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
result = verify_ospf6_rib(tgen, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -362,7 +362,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Routes still present in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes still present in RIB".format(tc_name)
|
||||
|
||||
step("Delete the configured summary")
|
||||
ospf_summ_r1 = {
|
||||
@ -387,7 +387,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
result = verify_ospf6_rib(tgen, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -396,9 +396,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Summary Route still present in RIB".format(
|
||||
tc_name
|
||||
)
|
||||
), "Testcase {} : Failed Error: Summary Route still present in RIB".format(tc_name)
|
||||
|
||||
step("show ip ospf summary should not have any summary address.")
|
||||
input_dict = {
|
||||
@ -416,7 +414,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Summary still present in DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary still present in DB".format(tc_name)
|
||||
|
||||
dut = "r1"
|
||||
step("All 5 routes are advertised after deletion of configured summary.")
|
||||
@ -427,7 +425,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_static_rtes, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step("configure the summary again and delete static routes .")
|
||||
ospf_summ_r1 = {
|
||||
@ -455,7 +453,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
input_dict = {
|
||||
"r0": {
|
||||
@ -474,7 +472,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
result = verify_ospf6_rib(tgen, dut, input_dict_summary, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -483,7 +481,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Routes still present in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes still present in RIB".format(tc_name)
|
||||
|
||||
step("Add back static routes.")
|
||||
input_dict_static_rtes = {
|
||||
@ -501,7 +499,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
result = verify_ospf6_rib(tgen, dut, input_dict_static_rtes, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -510,7 +508,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Routes still present in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes still present in RIB".format(tc_name)
|
||||
|
||||
input_dict_summary = {"r0": {"static_routes": [{"network": SUMMARY["ipv6"][0]}]}}
|
||||
dut = "r1"
|
||||
@ -521,7 +519,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step("Verify that show ip ospf summary should show configure summaries.")
|
||||
|
||||
@ -538,7 +536,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Configure new static route which is matching configured summary.")
|
||||
input_dict_static_rtes = {
|
||||
@ -604,7 +602,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step("Shut one of the interface")
|
||||
intf = topo["routers"]["r0"]["links"]["r3-link0"]["interface"]
|
||||
@ -676,7 +674,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
input_dict_summary = {"r0": {"static_routes": [{"network": SUMMARY["ipv6"][0]}]}}
|
||||
|
||||
@ -687,7 +685,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
ospf_summ_r1 = {
|
||||
"r0": {
|
||||
@ -715,7 +713,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
result = verify_ospf6_rib(tgen, dut, input_dict_summary, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -724,7 +722,7 @@ def test_ospfv3_type5_summary_tc42_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Routes still present in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes still present in RIB".format(tc_name)
|
||||
|
||||
ospf_summ_r1 = {
|
||||
"r0": {
|
||||
@ -787,11 +785,9 @@ def test_ospfv3_type5_summary_tc43_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_static_rtes, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step(
|
||||
"Configure External Route summary in R0 to summarise 5" " routes to one route."
|
||||
)
|
||||
step("Configure External Route summary in R0 to summarise 5 routes to one route.")
|
||||
ospf_summ_r1 = {
|
||||
"r0": {
|
||||
"ospf6": {
|
||||
@ -817,7 +813,7 @@ def test_ospfv3_type5_summary_tc43_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step("Verify that show ip ospf summary should show the summaries.")
|
||||
input_dict = {
|
||||
@ -833,7 +829,7 @@ def test_ospfv3_type5_summary_tc43_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Change the summary address mask to lower match (ex - 16 to 8)")
|
||||
ospf_summ_r1 = {
|
||||
@ -868,7 +864,7 @@ def test_ospfv3_type5_summary_tc43_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step(
|
||||
"Verify that external routes(static / connected) are summarised"
|
||||
@ -884,7 +880,7 @@ def test_ospfv3_type5_summary_tc43_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step("Change the summary address mask to higher match (ex - 8 to 24)")
|
||||
ospf_summ_r1 = {
|
||||
@ -912,7 +908,7 @@ def test_ospfv3_type5_summary_tc43_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step(
|
||||
"Verify that external routes(static / connected) are summarised"
|
||||
@ -933,7 +929,7 @@ def test_ospfv3_type5_summary_tc43_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step(" Un configure one of the summary address.")
|
||||
ospf_summ_r1 = {
|
||||
@ -968,7 +964,7 @@ def test_ospfv3_type5_summary_tc43_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
ospf_summ_r1 = {
|
||||
"r0": {
|
||||
@ -995,7 +991,7 @@ def test_ospfv3_type5_summary_tc43_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
write_test_footer(tc_name)
|
||||
|
||||
@ -1043,11 +1039,9 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_static_rtes, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step(
|
||||
"Configure External Route summary in R0 to summarise 5" " routes to one route."
|
||||
)
|
||||
step("Configure External Route summary in R0 to summarise 5 routes to one route.")
|
||||
ospf_summ_r1 = {
|
||||
"r0": {
|
||||
"ospf6": {
|
||||
@ -1079,7 +1073,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step("Verify that show ip ospf summary should show the summaries with tag.")
|
||||
input_dict = {
|
||||
@ -1095,7 +1089,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Delete the configured summary")
|
||||
ospf_summ_r1 = {
|
||||
@ -1120,7 +1114,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_ospf6_rib(tgen, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -1129,9 +1123,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Summary Route still present in RIB".format(
|
||||
tc_name
|
||||
)
|
||||
), "Testcase {} : Failed Error: Summary Route still present in RIB".format(tc_name)
|
||||
|
||||
step("show ip ospf summary should not have any summary address.")
|
||||
input_dict = {
|
||||
@ -1149,7 +1141,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Summary still present in DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary still present in DB".format(tc_name)
|
||||
|
||||
step("Configure Min tag value")
|
||||
ospf_summ_r1 = {
|
||||
@ -1174,7 +1166,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step("Verify that show ip ospf summary should show the summaries with tag.")
|
||||
input_dict = {
|
||||
@ -1190,7 +1182,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Configure Max Tag Value")
|
||||
ospf_summ_r1 = {
|
||||
@ -1220,7 +1212,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step(
|
||||
"Verify that boundary values tags are used for summary route"
|
||||
@ -1239,7 +1231,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("configure new static route with different tag.")
|
||||
input_dict_static_rtes_11 = {
|
||||
@ -1264,7 +1256,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -1279,7 +1271,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Routes still present in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes still present in RIB".format(tc_name)
|
||||
|
||||
step(
|
||||
"Verify that boundary values tags are used for summary route"
|
||||
@ -1300,7 +1292,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Delete the configured summary address")
|
||||
ospf_summ_r1 = {
|
||||
@ -1331,7 +1323,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_static_rtes, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step("Verify that summary address is flushed from neighbor.")
|
||||
|
||||
@ -1339,7 +1331,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_ospf6_rib(tgen, dut, input_dict_summary, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -1348,7 +1340,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Routes still present in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes still present in RIB".format(tc_name)
|
||||
|
||||
step("Configure summary first & then configure matching static route.")
|
||||
|
||||
@ -1480,11 +1472,9 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_static_rtes, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step(
|
||||
"Configure External Route summary in R0 to summarise 5" " routes to one route."
|
||||
)
|
||||
step("Configure External Route summary in R0 to summarise 5 routes to one route.")
|
||||
ospf_summ_r1 = {
|
||||
"r0": {
|
||||
"ospf6": {
|
||||
@ -1516,7 +1506,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step("Verify that show ip ospf summary should show the summaries with tag.")
|
||||
input_dict = {
|
||||
@ -1554,7 +1544,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_ospf6_rib(tgen, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -1563,9 +1553,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Summary Route still present in RIB".format(
|
||||
tc_name
|
||||
)
|
||||
), "Testcase {} : Failed Error: Summary Route still present in RIB".format(tc_name)
|
||||
|
||||
step("show ip ospf summary should not have any summary address.")
|
||||
input_dict = {
|
||||
@ -1583,7 +1571,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Summary still present in DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary still present in DB".format(tc_name)
|
||||
|
||||
step("Configure Min tag value")
|
||||
ospf_summ_r1 = {
|
||||
@ -1608,7 +1596,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step("Verify that show ip ospf summary should show the summaries with tag.")
|
||||
input_dict = {
|
||||
@ -1624,7 +1612,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Configure Max Tag Value")
|
||||
ospf_summ_r1 = {
|
||||
@ -1654,7 +1642,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step(
|
||||
"Verify that boundary values tags are used for summary route"
|
||||
@ -1673,7 +1661,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("configure new static route with different tag.")
|
||||
input_dict_static_rtes_11 = {
|
||||
@ -1698,7 +1686,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -1713,7 +1701,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Routes still present in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes still present in RIB".format(tc_name)
|
||||
|
||||
step(
|
||||
"Verify that boundary values tags are used for summary route"
|
||||
@ -1734,7 +1722,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Delete the configured summary address")
|
||||
ospf_summ_r1 = {
|
||||
@ -1765,7 +1753,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_static_rtes, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step("Verify that summary address is flushed from neighbor.")
|
||||
|
||||
@ -1773,7 +1761,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
result = verify_ospf6_rib(tgen, dut, input_dict_summary, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -1782,7 +1770,7 @@ def ospfv3_type5_summary_tc45_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Routes still present in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes still present in RIB".format(tc_name)
|
||||
|
||||
step("Configure summary first & then configure matching static route.")
|
||||
|
||||
@ -1866,7 +1854,7 @@ def test_ospfv3_type5_summary_tc46_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_static_rtes, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step(
|
||||
"Configure External Route summary in R0 to summarise 5"
|
||||
@ -1900,7 +1888,7 @@ def test_ospfv3_type5_summary_tc46_p0(request):
|
||||
result = verify_ospf6_rib(tgen, dut, input_dict_summary, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -1909,9 +1897,9 @@ def test_ospfv3_type5_summary_tc46_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Routes still present in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes still present in RIB".format(tc_name)
|
||||
|
||||
step("Verify that show ip ospf summary should show the " "configured summaries.")
|
||||
step("Verify that show ip ospf summary should show the configured summaries.")
|
||||
input_dict = {
|
||||
SUMMARY["ipv6"][0]: {
|
||||
"Summary address": SUMMARY["ipv6"][0],
|
||||
@ -1922,7 +1910,7 @@ def test_ospfv3_type5_summary_tc46_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Delete the configured summary")
|
||||
ospf_summ_r1 = {
|
||||
@ -1949,7 +1937,7 @@ def test_ospfv3_type5_summary_tc46_p0(request):
|
||||
result = verify_ospf6_rib(tgen, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -1958,9 +1946,7 @@ def test_ospfv3_type5_summary_tc46_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Summary Route still present in RIB".format(
|
||||
tc_name
|
||||
)
|
||||
), "Testcase {} : Failed Error: Summary Route still present in RIB".format(tc_name)
|
||||
|
||||
step("show ip ospf summary should not have any summary address.")
|
||||
input_dict = {
|
||||
@ -1978,7 +1964,7 @@ def test_ospfv3_type5_summary_tc46_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Summary still present in DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary still present in DB".format(tc_name)
|
||||
|
||||
step("Reconfigure summary with no advertise.")
|
||||
ospf_summ_r1 = {
|
||||
@ -2009,7 +1995,7 @@ def test_ospfv3_type5_summary_tc46_p0(request):
|
||||
result = verify_ospf6_rib(tgen, dut, input_dict_summary, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -2018,9 +2004,9 @@ def test_ospfv3_type5_summary_tc46_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Routes still present in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes still present in RIB".format(tc_name)
|
||||
|
||||
step("Verify that show ip ospf summary should show the " "configured summaries.")
|
||||
step("Verify that show ip ospf summary should show the configured summaries.")
|
||||
input_dict = {
|
||||
SUMMARY["ipv6"][0]: {
|
||||
"Summary address": SUMMARY["ipv6"][0],
|
||||
@ -2031,7 +2017,7 @@ def test_ospfv3_type5_summary_tc46_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step(
|
||||
"Change summary address from no advertise to advertise "
|
||||
@ -2080,7 +2066,7 @@ def test_ospfv3_type5_summary_tc46_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step("Verify that show ip ospf summary should show the summaries.")
|
||||
input_dict = {
|
||||
@ -2096,9 +2082,9 @@ def test_ospfv3_type5_summary_tc46_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Verify that originally advertised routes are withdraw from there" " peer.")
|
||||
step("Verify that originally advertised routes are withdraw from there peer.")
|
||||
output = tgen.gears["r0"].vtysh_cmd(
|
||||
"show ipv6 ospf6 database as-external json", isjson=True
|
||||
)
|
||||
@ -2114,7 +2100,7 @@ def test_ospfv3_type5_summary_tc46_p0(request):
|
||||
result = verify_ospf6_rib(tgen, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -2123,7 +2109,7 @@ def test_ospfv3_type5_summary_tc46_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Routes is present in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is present in RIB".format(tc_name)
|
||||
|
||||
write_test_footer(tc_name)
|
||||
|
||||
@ -2170,11 +2156,9 @@ def test_ospfv3_type5_summary_tc48_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_static_rtes, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step(
|
||||
"Configure External Route summary in R0 to summarise 5" " routes to one route."
|
||||
)
|
||||
step("Configure External Route summary in R0 to summarise 5 routes to one route.")
|
||||
|
||||
ospf_summ_r1 = {
|
||||
"r0": {
|
||||
@ -2202,7 +2186,7 @@ def test_ospfv3_type5_summary_tc48_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step("Verify that show ip ospf summary should show the summaries.")
|
||||
input_dict = {
|
||||
@ -2218,9 +2202,9 @@ def test_ospfv3_type5_summary_tc48_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Verify that originally advertised routes are withdraw from there" " peer.")
|
||||
step("Verify that originally advertised routes are withdraw from there peer.")
|
||||
input_dict = {
|
||||
"r0": {"static_routes": [{"network": NETWORK["ipv6"], "next_hop": "blackhole"}]}
|
||||
}
|
||||
@ -2228,7 +2212,7 @@ def test_ospfv3_type5_summary_tc48_p0(request):
|
||||
result = verify_ospf6_rib(tgen, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -2237,7 +2221,7 @@ def test_ospfv3_type5_summary_tc48_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Routes still present in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes still present in RIB".format(tc_name)
|
||||
|
||||
step(
|
||||
"Configure route map and & rule to permit configured summary address,"
|
||||
@ -2300,7 +2284,7 @@ def test_ospfv3_type5_summary_tc48_p0(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
input_dict = {
|
||||
SUMMARY["ipv6"][0]: {
|
||||
@ -2315,7 +2299,7 @@ def test_ospfv3_type5_summary_tc48_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Configure metric type as 1 in route map.")
|
||||
|
||||
@ -2352,7 +2336,7 @@ def test_ospfv3_type5_summary_tc48_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Un configure metric type from route map.")
|
||||
|
||||
@ -2389,7 +2373,7 @@ def test_ospfv3_type5_summary_tc48_p0(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Change rule from permit to deny in prefix list.")
|
||||
pfx_list = {
|
||||
@ -2420,7 +2404,7 @@ def test_ospfv3_type5_summary_tc48_p0(request):
|
||||
result = verify_ospf6_rib(tgen, dut, input_dict_summary, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -2429,7 +2413,7 @@ def test_ospfv3_type5_summary_tc48_p0(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Routes still present in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes still present in RIB".format(tc_name)
|
||||
|
||||
write_test_footer(tc_name)
|
||||
|
||||
@ -2569,7 +2553,7 @@ def test_ospfv3_type5_summary_tc51_p2(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
write_test_footer(tc_name)
|
||||
|
||||
@ -2616,11 +2600,9 @@ def test_ospfv3_type5_summary_tc49_p2(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_static_rtes, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step(
|
||||
"Configure External Route summary in R0 to summarise 5" " routes to one route."
|
||||
)
|
||||
step("Configure External Route summary in R0 to summarise 5 routes to one route.")
|
||||
|
||||
ospf_summ_r1 = {
|
||||
"r0": {
|
||||
@ -2648,7 +2630,7 @@ def test_ospfv3_type5_summary_tc49_p2(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step("Verify that show ip ospf summary should show the summaries.")
|
||||
input_dict = {
|
||||
@ -2664,9 +2646,9 @@ def test_ospfv3_type5_summary_tc49_p2(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Verify that originally advertised routes are withdraw from there" " peer.")
|
||||
step("Verify that originally advertised routes are withdraw from there peer.")
|
||||
input_dict = {
|
||||
"r0": {"static_routes": [{"network": NETWORK["ipv6"], "next_hop": "blackhole"}]}
|
||||
}
|
||||
@ -2674,7 +2656,7 @@ def test_ospfv3_type5_summary_tc49_p2(request):
|
||||
result = verify_ospf6_rib(tgen, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -2683,7 +2665,7 @@ def test_ospfv3_type5_summary_tc49_p2(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Routes still present in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes still present in RIB".format(tc_name)
|
||||
|
||||
step("Reload the FRR router")
|
||||
# stop/start -> restart FRR router and verify
|
||||
@ -2704,7 +2686,7 @@ def test_ospfv3_type5_summary_tc49_p2(request):
|
||||
result = verify_rib(tgen, "ipv6", dut, input_dict_summary, protocol=protocol)
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Routes is missing in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes is missing in RIB".format(tc_name)
|
||||
|
||||
step("Verify that show ip ospf summary should show the summaries.")
|
||||
input_dict = {
|
||||
@ -2720,9 +2702,9 @@ def test_ospfv3_type5_summary_tc49_p2(request):
|
||||
result = verify_ospf_summary(tgen, topo, dut, input_dict, ospf="ospf6")
|
||||
assert (
|
||||
result is True
|
||||
), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Summary missing in OSPF DB".format(tc_name)
|
||||
|
||||
step("Verify that originally advertised routes are withdraw from there" " peer.")
|
||||
step("Verify that originally advertised routes are withdraw from there peer.")
|
||||
input_dict = {
|
||||
"r0": {"static_routes": [{"network": NETWORK["ipv6"], "next_hop": "blackhole"}]}
|
||||
}
|
||||
@ -2730,7 +2712,7 @@ def test_ospfv3_type5_summary_tc49_p2(request):
|
||||
result = verify_ospf6_rib(tgen, dut, input_dict, expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Error: " "Routes still present in OSPF RIB {}".format(
|
||||
), "Testcase {} : Failed \n Error: Routes still present in OSPF RIB {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -2739,7 +2721,7 @@ def test_ospfv3_type5_summary_tc49_p2(request):
|
||||
)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed" "Error: Routes still present in RIB".format(tc_name)
|
||||
), "Testcase {} : Failed Error: Routes still present in RIB".format(tc_name)
|
||||
|
||||
write_test_footer(tc_name)
|
||||
|
||||
|
@ -124,7 +124,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo)
|
||||
assert ospf6_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "setup_module :Failed \n Error: {}".format(
|
||||
ospf6_covergence
|
||||
)
|
||||
|
||||
@ -195,7 +195,7 @@ def test_ospf6_auth_trailer_tc1_md5(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=3
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -227,7 +227,7 @@ def test_ospf6_auth_trailer_tc1_md5(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -257,7 +257,7 @@ def test_ospf6_auth_trailer_tc1_md5(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=5
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -285,7 +285,7 @@ def test_ospf6_auth_trailer_tc1_md5(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -300,7 +300,7 @@ def test_ospf6_auth_trailer_tc1_md5(request):
|
||||
"show ip ospf6 neighbor cmd."
|
||||
)
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut, expected=False)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -314,7 +314,7 @@ def test_ospf6_auth_trailer_tc1_md5(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -361,7 +361,7 @@ def test_ospf6_auth_trailer_tc2_sha256(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=3
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -393,7 +393,7 @@ def test_ospf6_auth_trailer_tc2_sha256(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -423,7 +423,7 @@ def test_ospf6_auth_trailer_tc2_sha256(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=5
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -451,7 +451,7 @@ def test_ospf6_auth_trailer_tc2_sha256(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -466,7 +466,7 @@ def test_ospf6_auth_trailer_tc2_sha256(request):
|
||||
"show ip ospf6 neighbor cmd."
|
||||
)
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut, expected=False)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -480,7 +480,7 @@ def test_ospf6_auth_trailer_tc2_sha256(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -544,7 +544,7 @@ def test_ospf6_auth_trailer_tc3_keychain_md5(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=3
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -574,7 +574,7 @@ def test_ospf6_auth_trailer_tc3_keychain_md5(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -593,7 +593,7 @@ def test_ospf6_auth_trailer_tc3_keychain_md5(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=5
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -619,7 +619,7 @@ def test_ospf6_auth_trailer_tc3_keychain_md5(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -634,7 +634,7 @@ def test_ospf6_auth_trailer_tc3_keychain_md5(request):
|
||||
"show ip ospf6 neighbor cmd."
|
||||
)
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut, expected=False)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -648,7 +648,7 @@ def test_ospf6_auth_trailer_tc3_keychain_md5(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -712,7 +712,7 @@ def test_ospf6_auth_trailer_tc4_keychain_sha256(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=3
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -742,7 +742,7 @@ def test_ospf6_auth_trailer_tc4_keychain_sha256(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -761,7 +761,7 @@ def test_ospf6_auth_trailer_tc4_keychain_sha256(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=5
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -787,7 +787,7 @@ def test_ospf6_auth_trailer_tc4_keychain_sha256(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -802,7 +802,7 @@ def test_ospf6_auth_trailer_tc4_keychain_sha256(request):
|
||||
"show ip ospf6 neighbor cmd."
|
||||
)
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut, expected=False)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -816,7 +816,7 @@ def test_ospf6_auth_trailer_tc4_keychain_sha256(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -863,7 +863,7 @@ def test_ospf6_auth_trailer_tc5_md5_keymissmatch(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=3
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -900,7 +900,7 @@ def test_ospf6_auth_trailer_tc5_md5_keymissmatch(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=3
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -932,7 +932,7 @@ def test_ospf6_auth_trailer_tc5_md5_keymissmatch(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -979,7 +979,7 @@ def test_ospf6_auth_trailer_tc6_sha256_mismatch(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=3
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -1011,7 +1011,7 @@ def test_ospf6_auth_trailer_tc6_sha256_mismatch(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=3
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -1043,7 +1043,7 @@ def test_ospf6_auth_trailer_tc6_sha256_mismatch(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -1115,7 +1115,7 @@ def test_ospf6_auth_trailer_tc7_keychain_md5_missmatch(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=3
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -1145,7 +1145,7 @@ def test_ospf6_auth_trailer_tc7_keychain_md5_missmatch(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=3
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -1175,7 +1175,7 @@ def test_ospf6_auth_trailer_tc7_keychain_md5_missmatch(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -1247,7 +1247,7 @@ def test_ospf6_auth_trailer_tc8_keychain_sha256_missmatch(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=3
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -1277,7 +1277,7 @@ def test_ospf6_auth_trailer_tc8_keychain_sha256_missmatch(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=3
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -1307,7 +1307,7 @@ def test_ospf6_auth_trailer_tc8_keychain_sha256_missmatch(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -1355,7 +1355,7 @@ def test_ospf6_auth_trailer_tc9_keychain_not_configured(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=3
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -1385,7 +1385,7 @@ def test_ospf6_auth_trailer_tc9_keychain_not_configured(request):
|
||||
ospf6_covergence = verify_ospf6_neighbor(
|
||||
tgen, topo, dut=dut, expected=False, retry_timeout=3
|
||||
)
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is not True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
@ -1415,7 +1415,7 @@ def test_ospf6_auth_trailer_tc10_no_auth_trailer(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf6_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error:" " {}".format(
|
||||
assert ospf6_covergence is True, "Testcase {} :Failed \n Error: {}".format(
|
||||
tc_name, ospf6_covergence
|
||||
)
|
||||
|
||||
|
@ -128,7 +128,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -270,7 +270,7 @@ def test_ospfv3_ecmp_tc16_p0(request):
|
||||
step("Verify that OSPF is up with 8 neighborship sessions.")
|
||||
dut = "r1"
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -365,7 +365,7 @@ def test_ospfv3_ecmp_tc16_p0(request):
|
||||
step("Verify that OSPF is up with 8 neighborship sessions.")
|
||||
dut = "r1"
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -403,7 +403,7 @@ def test_ospfv3_ecmp_tc17_p0(request):
|
||||
step("Verify that OSPF is up with 2 neighborship sessions.")
|
||||
dut = "r1"
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
|
@ -141,7 +141,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo, lan=True)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -295,7 +295,7 @@ def test_ospfv3_lan_ecmp_tc18_p0(request):
|
||||
step("Verify that OSPF is up with 8 neighborship sessions.")
|
||||
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo, lan=True)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -356,7 +356,7 @@ def test_ospfv3_lan_ecmp_tc18_p0(request):
|
||||
|
||||
dut = "r0"
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut, lan=True)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -365,7 +365,7 @@ def test_ospfv3_lan_ecmp_tc18_p0(request):
|
||||
|
||||
dut = "r2"
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut, lan=True)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
|
@ -73,7 +73,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
|
||||
result = verify_ospf6_neighbor(tgen, topo)
|
||||
assert result is True, "setup_module: Failed \n Error:" " {}".format(result)
|
||||
assert result is True, "setup_module: Failed \n Error: {}".format(result)
|
||||
|
||||
logger.info("Running setup_module() done")
|
||||
|
||||
|
@ -151,7 +151,7 @@ def setup_module(mod):
|
||||
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -290,7 +290,7 @@ def test_ospfv3_nssa_tc26_p0(request):
|
||||
result = verify_ospf6_neighbor(tgen, topo, dut="r2", expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Nbrs are not down" "Error: {}".format(tc_name, result)
|
||||
), "Testcase {} : Failed \n Nbrs are not down Error: {}".format(tc_name, result)
|
||||
|
||||
step("Now configure area 0 on interface of r1 connecting to r2.")
|
||||
|
||||
@ -362,7 +362,7 @@ def test_ospfv3_nssa_tc26_p0(request):
|
||||
result = verify_ospf6_neighbor(tgen, topo, dut="r2", expected=False)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Nbrs are not down" "Error: {}".format(tc_name, result)
|
||||
), "Testcase {} : Failed \n Nbrs are not down Error: {}".format(tc_name, result)
|
||||
|
||||
step("Now configure area 2 on interface of r1 connecting to r2.")
|
||||
|
||||
@ -484,7 +484,7 @@ def test_ospfv3_learning_tc15_p0(request):
|
||||
result = verify_ospf6_neighbor(tgen, topo)
|
||||
assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
|
||||
|
||||
step("Change area 1 as non nssa area (on the fly changing area" " type on DUT).")
|
||||
step("Change area 1 as non nssa area (on the fly changing area type on DUT).")
|
||||
|
||||
for rtr in ["r1", "r2", "r3"]:
|
||||
input_dict = {
|
||||
|
@ -142,7 +142,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -225,9 +225,7 @@ def test_ospfv3_routemaps_functionality_tc19_p0(request):
|
||||
result = create_router_ospf(tgen, topo, ospf_red_r1)
|
||||
assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
|
||||
|
||||
step(
|
||||
"Create prefix-list in R0 to permit 10.0.20.1/32 prefix &" " deny 10.0.20.2/32"
|
||||
)
|
||||
step("Create prefix-list in R0 to permit 10.0.20.1/32 prefix & deny 10.0.20.2/32")
|
||||
|
||||
# Create ip prefix list
|
||||
pfx_list = {
|
||||
@ -699,7 +697,7 @@ def test_ospfv3_routemaps_functionality_tc25_p0(request):
|
||||
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -1091,7 +1089,7 @@ def test_ospfv3_routemaps_functionality_tc24_p0(request):
|
||||
result = verify_prefix_lists(tgen, pfx_list)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Prefix list not " "present. Error: {}".format(
|
||||
), "Testcase {} : Failed \n Prefix list not present. Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
@ -1160,7 +1158,7 @@ def test_ospfv3_routemaps_functionality_tc24_p0(request):
|
||||
result = verify_prefix_lists(tgen, pfx_list)
|
||||
assert (
|
||||
result is not True
|
||||
), "Testcase {} : Failed \n Prefix list not " "present. Error: {}".format(
|
||||
), "Testcase {} : Failed \n Prefix list not present. Error: {}".format(
|
||||
tc_name, result
|
||||
)
|
||||
|
||||
|
@ -133,7 +133,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -269,7 +269,7 @@ def test_ospfv3_redistribution_tc5_p0(request):
|
||||
|
||||
step("Verify that OSPF neighbors are FULL.")
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -629,7 +629,7 @@ def test_ospfv3_redistribution_tc8_p1(request):
|
||||
step("Verify that OSPF neighbours are reset and forms new adjacencies.")
|
||||
# Api call verify whether OSPF is converged
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
|
@ -127,7 +127,7 @@ def setup_module(mod):
|
||||
pytest.skip(tgen.errors)
|
||||
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -473,7 +473,7 @@ def test_ospfv3_hello_tc10_p0(request):
|
||||
|
||||
step("verify that ospf neighbours are full")
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -526,7 +526,7 @@ def test_ospfv3_hello_tc10_p0(request):
|
||||
|
||||
step("verify that ospf neighbours are full")
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -579,7 +579,7 @@ def test_ospfv3_hello_tc10_p0(request):
|
||||
|
||||
step("verify that ospf neighbours are full")
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -631,7 +631,7 @@ def test_ospfv3_hello_tc10_p0(request):
|
||||
|
||||
step("verify that ospf neighbours are full")
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo, dut=dut)
|
||||
assert ospf_covergence is True, "setup_module :Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "Testcase Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -722,9 +722,7 @@ def test_ospfv3_hello_tc10_p0(request):
|
||||
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."
|
||||
)
|
||||
step("Verify that timer value is deleted from intf & set to default value 40 sec.")
|
||||
input_dict = {"r1": {"links": {"r0": {"ospf6": {"timerIntervalsConfigHello": 10}}}}}
|
||||
dut = "r1"
|
||||
result = verify_ospf6_interface(tgen, topo, dut=dut, input_dict=input_dict)
|
||||
@ -776,7 +774,7 @@ def test_ospfv3_dead_tc11_p0(request):
|
||||
result = verify_ospf6_interface(tgen, topo, dut=dut, input_dict=input_dict)
|
||||
assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
|
||||
|
||||
step("modify dead interval from default value to r1" "dead interval timer on r2")
|
||||
step("modify dead interval from default value to r1 dead interval timer on r2")
|
||||
|
||||
topo1 = {
|
||||
"r0": {
|
||||
@ -812,7 +810,7 @@ def test_ospfv3_dead_tc11_p0(request):
|
||||
# reconfiguring deleted ospf process by resetting the configs.
|
||||
reset_config_on_routers(tgen)
|
||||
|
||||
step("reconfigure the default dead interval timer value to " "default on r1 and r2")
|
||||
step("reconfigure the default dead interval timer value to default on r1 and r2")
|
||||
topo1 = {
|
||||
"r0": {
|
||||
"links": {
|
||||
@ -933,9 +931,7 @@ def test_ospfv3_dead_tc11_p0(request):
|
||||
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."
|
||||
)
|
||||
step("Verify that timer value is deleted from intf & set to default value 40 sec.")
|
||||
input_dict = {"r1": {"links": {"r0": {"ospf6": {"timerIntervalsConfigDead": 40}}}}}
|
||||
dut = "r1"
|
||||
result = verify_ospf6_interface(tgen, topo, dut=dut, input_dict=input_dict)
|
||||
@ -980,18 +976,14 @@ def test_ospfv3_tc4_mtu_ignore_p0(request):
|
||||
clear_ospf(tgen, "r0", ospf="ospf6")
|
||||
clear_ospf(tgen, "r1", ospf="ospf6")
|
||||
|
||||
step(
|
||||
"Verify that OSPF neighborship between R0 and R1 is stuck in Exstart" " State."
|
||||
)
|
||||
step("Verify that OSPF neighborship between R0 and R1 is stuck in Exstart State.")
|
||||
result = verify_ospf6_neighbor(tgen, topo, expected=False)
|
||||
assert result is not True, (
|
||||
"Testcase {} : Failed \n OSPF nbrs are Full "
|
||||
"instead of Exstart. Error: {}".format(tc_name, result)
|
||||
)
|
||||
|
||||
step(
|
||||
"Verify that configured MTU value is updated in the show ip " "ospf interface."
|
||||
)
|
||||
step("Verify that configured MTU value is updated in the show ip ospf interface.")
|
||||
|
||||
dut = "r0"
|
||||
input_dict = {"r0": {"links": {"r1": {"ospf6": {"interfaceMtu": 1400}}}}}
|
||||
@ -1048,9 +1040,7 @@ def test_ospfv3_tc4_mtu_ignore_p0(request):
|
||||
|
||||
clear_ospf(tgen, "r0", ospf="ospf6")
|
||||
|
||||
step(
|
||||
"Verify that OSPF neighborship between R0 and R1 is stuck in Exstart" " State."
|
||||
)
|
||||
step("Verify that OSPF neighborship between R0 and R1 is stuck in Exstart State.")
|
||||
result = verify_ospf6_neighbor(tgen, topo, expected=False)
|
||||
assert result is not True, (
|
||||
"Testcase {} : Failed \n OSPF nbrs are Full "
|
||||
@ -1067,9 +1057,7 @@ def test_ospfv3_tc4_mtu_ignore_p0(request):
|
||||
result = verify_ospf6_neighbor(tgen, topo)
|
||||
assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
|
||||
|
||||
step(
|
||||
"Configure ospf interface with jumbo MTU (9216)." "Reset ospf neighbors on R0."
|
||||
)
|
||||
step("Configure ospf interface with jumbo MTU (9216). Reset ospf neighbors on R0.")
|
||||
|
||||
rtr0.run("ifconfig {} mtu 9216".format(r0_r1_intf))
|
||||
rtr1.run("ifconfig {} mtu 9216".format(r1_r0_intf))
|
||||
@ -1247,7 +1235,7 @@ def ospfv3_router_id_tc14_p2(request):
|
||||
clear_ospf(tgen, rtr, ospf="ospf6")
|
||||
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo1)
|
||||
assert ospf_covergence is True, "OSPF NBRs not up.Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "OSPF NBRs not up.Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -1273,9 +1261,9 @@ def ospfv3_router_id_tc14_p2(request):
|
||||
assert result is True, "Testcase : Failed \n Error: {}".format(result)
|
||||
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo, expected=False)
|
||||
assert (
|
||||
ospf_covergence is not True
|
||||
), "OSPF NBRs are up.Failed \n Error:" " {}".format(ospf_covergence)
|
||||
assert ospf_covergence is not True, "OSPF NBRs are up.Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
topo1 = {}
|
||||
topo1 = deepcopy(topo)
|
||||
|
||||
@ -1318,7 +1306,7 @@ def ospfv3_router_id_tc14_p2(request):
|
||||
topo1["routers"]["r3"]["ospf6"]["router_id"] = "1.1.1.4"
|
||||
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo1)
|
||||
assert ospf_covergence is True, "OSPF NBRs not up.Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "OSPF NBRs not up.Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
@ -1326,7 +1314,7 @@ def ospfv3_router_id_tc14_p2(request):
|
||||
reset_config_on_routers(tgen)
|
||||
|
||||
ospf_covergence = verify_ospf6_neighbor(tgen, topo)
|
||||
assert ospf_covergence is True, "OSPF NBRs not up.Failed \n Error:" " {}".format(
|
||||
assert ospf_covergence is True, "OSPF NBRs not up.Failed \n Error: {}".format(
|
||||
ospf_covergence
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user