test: ospf_point_to_multipoint: Adapt to yanger

This commit is contained in:
Mattias Walström
2026-06-19 11:38:09 +02:00
parent bd97fcb16d
commit 7e3d92cdbb
2 changed files with 6 additions and 6 deletions
@@ -321,9 +321,9 @@ with infamy.Test() as test:
with test.step("Verify interface type is point-to-multipoint"):
print("Checking OSPF interface type on all routers")
assert route.ospf_get_interface_type(R1, "0.0.0.0", R1link) == "point-to-multipoint"
assert route.ospf_get_interface_type(R2, "0.0.0.0", "br0") == "point-to-multipoint"
assert route.ospf_get_interface_type(R3, "0.0.0.0", R3link) == "point-to-multipoint"
until(lambda: route.ospf_get_interface_type(R1, "0.0.0.0", R1link) == "point-to-multipoint")
until(lambda: route.ospf_get_interface_type(R2, "0.0.0.0", "br0") == "point-to-multipoint")
until(lambda: route.ospf_get_interface_type(R3, "0.0.0.0", R3link) == "point-to-multipoint")
with test.step("Verify connectivity between all DUTs"):
_, hport1 = env.ltop.xlate("PC", "data1")
@@ -314,9 +314,9 @@ with infamy.Test() as test:
with test.step("Verify interface type is hybrid"):
print("Checking OSPF interface type on all routers")
assert route.ospf_get_interface_type(R1, "0.0.0.0", R1link) == "hybrid"
assert route.ospf_get_interface_type(R2, "0.0.0.0", "br0") == "hybrid"
assert route.ospf_get_interface_type(R3, "0.0.0.0", R3link) == "hybrid"
until(lambda: route.ospf_get_interface_type(R1, "0.0.0.0", R1link) == "hybrid")
until(lambda: route.ospf_get_interface_type(R2, "0.0.0.0", "br0") == "hybrid")
until(lambda: route.ospf_get_interface_type(R3, "0.0.0.0", R3link) == "hybrid")
with test.step("Verify connectivity between all DUTs"):
_, hport1 = env.ltop.xlate("PC", "data1")