Skip to content
Snippets Groups Projects
Commit 242d10a2 authored by Hakan Calim's avatar Hakan Calim Committed by Neda Moeini
Browse files

NAT-329: fixed test to validate interface names

parent c2985477
No related branches found
No related tags found
1 merge request!122Feature/nat 329 interface names should validated 3
...@@ -51,7 +51,10 @@ def input_form_wizard_data(request, juniper_router_subscription_factory, nokia_r ...@@ -51,7 +51,10 @@ def input_form_wizard_data(request, juniper_router_subscription_factory, nokia_r
# Set side b router to Juniper # Set side b router to Juniper
if vendor == RouterVendor.JUNIPER: if vendor == RouterVendor.JUNIPER:
router_side_b = juniper_router_subscription_factory() router_side_b = juniper_router_subscription_factory()
side_b_members = ["et-1/0/1", "xe-1/0/2"] interface_names = [f"{prefix}{i}" for prefix in ["xe-1/0/", "ge-3/0/", "xe-2/1/"] for i in range(5)]
side_b_members = [
LAGMember(interface_name=interface_name, interface_description=faker.sentence())
for interface_name in interface_names]
else: else:
router_side_b = nokia_router_subscription_factory() router_side_b = nokia_router_subscription_factory()
side_b_members = [ side_b_members = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment