Skip to content
Snippets Groups Projects
Commit ec352a1a authored by Karel van Klink's avatar Karel van Klink :smiley_cat: Committed by Aleksandr Kurbatov
Browse files

Change type from LAGMember to dict for workflow step in trunk modification

parent 96ec5d43
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !267. Comments created here will be created in the context of that merge request.
......@@ -155,7 +155,7 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator:
@step("Determine whether we should be running interface checks")
def determine_change_in_capacity(
subscription: Iptrunk, iptrunk_speed: str, side_a_ae_members: list[LAGMember], side_b_ae_members: list[LAGMember]
subscription: Iptrunk, iptrunk_speed: str, side_a_ae_members: list[dict], side_b_ae_members: list[dict]
) -> State:
"""Determine whether we should run pre- and post-checks on the IP trunk.
......@@ -169,13 +169,13 @@ def determine_change_in_capacity(
iptrunk_speed != subscription.iptrunk.iptrunk_speed
or len(side_a_ae_members) != len(subscription.iptrunk.iptrunk_sides[0].iptrunk_side_ae_members)
or any(
old_interface.interface_name != new_interface.interface_name
old_interface.interface_name != new_interface["interface_name"]
for old_interface, new_interface in zip(
subscription.iptrunk.iptrunk_sides[0].iptrunk_side_ae_members, side_a_ae_members, strict=False
)
)
or any(
old_interface.interface_name != new_interface.interface_name
old_interface.interface_name != new_interface["interface_name"]
for old_interface, new_interface in zip(
subscription.iptrunk.iptrunk_sides[1].iptrunk_side_ae_members, side_b_ae_members, strict=False
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment