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
a209fc64
Verified
Commit
a209fc64
authored
10 months ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
Separate optical pre and post checks
parent
413abe90
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#88195
passed
10 months ago
Stage: tox
Stage: documentation
Stage: sonarqube
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/workflows/iptrunk/modify_trunk_interface.py
+17
-1
17 additions, 1 deletion
gso/workflows/iptrunk/modify_trunk_interface.py
with
17 additions
and
1 deletion
gso/workflows/iptrunk/modify_trunk_interface.py
+
17
−
1
View file @
a209fc64
...
...
@@ -462,6 +462,22 @@ def allocate_interfaces_in_netbox_side_b(subscription: Iptrunk, previous_ae_memb
_netbox_allocate_interfaces
(
subscription
.
iptrunk
.
iptrunk_sides
[
1
],
previous_ae_members
[
1
])
@step
(
"
Check Optical POST levels on the trunk endpoint
"
)
def
check_ip_trunk_optical_levels_post
(
subscription
:
Iptrunk
,
callback_route
:
str
)
->
State
:
"""
Check Optical POST levels on the trunk.
"""
extra_vars
=
{
"
wfo_ip_trunk_json
"
:
json
.
loads
(
json_dumps
(
subscription
)),
"
check
"
:
"
optical_post
"
}
execute_playbook
(
playbook_name
=
"
iptrunks_checks.yaml
"
,
callback_route
=
callback_route
,
inventory
=
f
"
{
subscription
.
iptrunk
.
iptrunk_sides
[
0
].
iptrunk_side_node
.
router_fqdn
}
\n
"
f
"
{
subscription
.
iptrunk
.
iptrunk_sides
[
1
].
iptrunk_side_node
.
router_fqdn
}
\n
"
,
extra_vars
=
extra_vars
,
)
return
{
"
subscription
"
:
subscription
}
@workflow
(
"
Modify IP Trunk interface
"
,
initial_input_form
=
wrap_modify_initial_input_form
(
initial_input_form_generator
),
...
...
@@ -505,7 +521,7 @@ def modify_trunk_interface() -> StepList:
>>
lso_interaction
(
provision_ip_trunk_iface_real
)
>>
side_a_is_nokia
(
allocate_interfaces_in_netbox_side_a
)
>>
side_b_is_nokia
(
allocate_interfaces_in_netbox_side_b
)
>>
capacity_has_changed
(
lso_interaction
(
check_ip_trunk_optical_levels_p
re
))
>>
capacity_has_changed
(
lso_interaction
(
check_ip_trunk_optical_levels_p
ost
))
>>
capacity_has_changed
(
lso_interaction
(
check_ip_trunk_connectivity
))
>>
capacity_has_changed
(
lso_interaction
(
check_ip_trunk_lldp
))
>>
capacity_has_changed
(
lso_interaction
(
check_ip_trunk_isis
))
...
...
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