Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Commits
ec352a1a
Commit
ec352a1a
authored
9 months ago
by
Karel van Klink
Committed by
Aleksandr Kurbatov
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/workflows/iptrunk/modify_trunk_interface.py
+3
-3
3 additions, 3 deletions
gso/workflows/iptrunk/modify_trunk_interface.py
with
3 additions
and
3 deletions
gso/workflows/iptrunk/modify_trunk_interface.py
+
3
−
3
View file @
ec352a1a
...
@@ -155,7 +155,7 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator:
...
@@ -155,7 +155,7 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator:
@step
(
"
Determine whether we should be running interface checks
"
)
@step
(
"
Determine whether we should be running interface checks
"
)
def
determine_change_in_capacity
(
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
:
)
->
State
:
"""
Determine whether we should run pre- and post-checks on the IP trunk.
"""
Determine whether we should run pre- and post-checks on the IP trunk.
...
@@ -169,13 +169,13 @@ def determine_change_in_capacity(
...
@@ -169,13 +169,13 @@ def determine_change_in_capacity(
iptrunk_speed
!=
subscription
.
iptrunk
.
iptrunk_speed
iptrunk_speed
!=
subscription
.
iptrunk
.
iptrunk_speed
or
len
(
side_a_ae_members
)
!=
len
(
subscription
.
iptrunk
.
iptrunk_sides
[
0
].
iptrunk_side_ae_members
)
or
len
(
side_a_ae_members
)
!=
len
(
subscription
.
iptrunk
.
iptrunk_sides
[
0
].
iptrunk_side_ae_members
)
or
any
(
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
(
for
old_interface
,
new_interface
in
zip
(
subscription
.
iptrunk
.
iptrunk_sides
[
0
].
iptrunk_side_ae_members
,
side_a_ae_members
,
strict
=
False
subscription
.
iptrunk
.
iptrunk_sides
[
0
].
iptrunk_side_ae_members
,
side_a_ae_members
,
strict
=
False
)
)
)
)
or
any
(
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
(
for
old_interface
,
new_interface
in
zip
(
subscription
.
iptrunk
.
iptrunk_sides
[
1
].
iptrunk_side_ae_members
,
side_b_ae_members
,
strict
=
False
subscription
.
iptrunk
.
iptrunk_sides
[
1
].
iptrunk_side_ae_members
,
side_b_ae_members
,
strict
=
False
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment