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
15383b4c
Commit
15383b4c
authored
3 weeks ago
by
Aleksandr Kurbatov
Browse files
Options
Downloads
Patches
Plain Diff
Exclude Netbox interaction for Juniper in `modify_edge_port`
parent
a57e34dc
No related branches found
No related tags found
1 merge request
!415
Juniper Edge Port modification
Pipeline
#93852
passed
3 weeks ago
Stage: tox
Stage: documentation
Stage: sonarqube
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/workflows/edge_port/modify_edge_port.py
+4
-2
4 additions, 2 deletions
gso/workflows/edge_port/modify_edge_port.py
with
4 additions
and
2 deletions
gso/workflows/edge_port/modify_edge_port.py
+
4
−
2
View file @
15383b4c
...
...
@@ -25,6 +25,7 @@ from gso.utils.helpers import (
available_interfaces_choices_including_current_members
,
validate_edge_port_number_of_members_based_on_lacp
,
)
from
gso.utils.shared_enums
import
Vendor
from
gso.utils.types.interfaces
import
LAGMember
,
PhysicalPortCapacity
from
gso.utils.types.tt_number
import
TTNumber
from
gso.utils.types.unique_field
import
validate_field_is_unique
...
...
@@ -272,16 +273,17 @@ def modify_edge_port() -> StepList:
* Modify configuration on the new edge port, first as a dry run
* Change LAG and LAG members in the Netbox.
"""
router_is_nokia
=
conditional
(
lambda
state
:
state
[
"
subscription
"
][
"
edge_port
"
][
"
node
"
][
"
vendor
"
]
==
Vendor
.
NOKIA
)
capacity_has_changed
=
conditional
(
lambda
state
:
state
[
"
capacity_has_changed
"
])
return
(
begin
>>
store_process_subscription
(
Target
.
MODIFY
)
>>
unsync
>>
modify_edge_port_subscription
>>
capacity_has_changed
(
update_interfaces_in_netbox
)
>>
capacity_has_changed
(
router_is_nokia
(
update_interfaces_in_netbox
)
)
>>
capacity_has_changed
(
lso_interaction
(
update_edge_port_dry
))
>>
capacity_has_changed
(
lso_interaction
(
update_edge_port_real
))
>>
capacity_has_changed
(
allocate_interfaces_in_netbox
)
>>
capacity_has_changed
(
router_is_nokia
(
allocate_interfaces_in_netbox
)
)
>>
resync
>>
done
)
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