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
34ecda72
Commit
34ecda72
authored
9 months ago
by
Aleksandr Kurbatov
Browse files
Options
Downloads
Patches
Plain Diff
Updates to workflow_steps and promote_p_to_pe
parent
59e350ea
No related branches found
No related tags found
1 merge request
!267
SDP mesh functions
Pipeline
#89449
failed
9 months ago
Stage: tox
Stage: documentation
Stage: sonarqube
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gso/utils/workflow_steps.py
+0
-1
0 additions, 1 deletion
gso/utils/workflow_steps.py
gso/workflows/router/promote_p_to_pe.py
+0
-22
0 additions, 22 deletions
gso/workflows/router/promote_p_to_pe.py
with
0 additions
and
23 deletions
gso/utils/workflow_steps.py
+
0
−
1
View file @
34ecda72
"""
Workflow steps that are shared across multiple workflows.
"""
"""
Workflow steps that are shared across multiple workflows.
"""
import
json
import
json
from
operator
import
inv
from
typing
import
Any
from
typing
import
Any
from
orchestrator
import
inputstep
,
step
from
orchestrator
import
inputstep
,
step
...
...
This diff is collapsed.
Click to expand it.
gso/workflows/router/promote_p_to_pe.py
+
0
−
22
View file @
34ecda72
...
@@ -200,7 +200,6 @@ def remove_p_from_pe_real(subscription: dict[str, Any], tt_number: str, process_
...
@@ -200,7 +200,6 @@ def remove_p_from_pe_real(subscription: dict[str, Any], tt_number: str, process_
}
}
@step
(
"
[DRY RUN] Deploy routing instances
"
)
@step
(
"
[DRY RUN] Deploy routing instances
"
)
def
deploy_routing_instances_dry
(
subscription
:
dict
[
str
,
Any
],
tt_number
:
str
,
process_id
:
UUIDstr
)
->
LSOState
:
def
deploy_routing_instances_dry
(
subscription
:
dict
[
str
,
Any
],
tt_number
:
str
,
process_id
:
UUIDstr
)
->
LSOState
:
"""
Perform a dry run of deploying routing instances.
"""
"""
Perform a dry run of deploying routing instances.
"""
...
@@ -260,27 +259,6 @@ def update_subscription_model(subscription: Router) -> State:
...
@@ -260,27 +259,6 @@ def update_subscription_model(subscription: Router) -> State:
return
{
"
subscription
"
:
subscription
}
return
{
"
subscription
"
:
subscription
}
@step
(
"
[DRY RUN] Add all P to this new PE
"
)
def
add_all_p_to_pe_dry
(
subscription
:
dict
[
str
,
Any
],
tt_number
:
str
,
process_id
:
UUIDstr
)
->
LSOState
:
"""
Perform a dry run of adding all P routers to the PE router.
"""
extra_vars
=
{
"
dry_run
"
:
True
,
"
subscription
"
:
subscription
,
"
commit_comment
"
:
f
"
GSO_PROCESS_ID:
{
process_id
}
- TT_NUMBER:
{
tt_number
}
- Add all P-routers to this new PE
"
,
"
verb
"
:
"
add_all_p_to_pe
"
,
"
p_router_list
"
:
generate_inventory_for_active_routers
(
RouterRole
.
P
,
exclude_routers
=
[
subscription
[
"
router
"
][
"
router_fqdn
"
]]
)[
"
all
"
][
"
hosts
"
],
}
return
{
"
playbook_name
"
:
"
update_ibgp_mesh.yaml
"
,
"
inventory
"
:
{
"
all
"
:
{
"
hosts
"
:
{
subscription
[
"
router
"
][
"
router_fqdn
"
]:
None
}}},
"
extra_vars
"
:
extra_vars
,
}
@step
(
"
[DRY RUN] Delete default routes
"
)
@step
(
"
[DRY RUN] Delete default routes
"
)
def
delete_default_routes_dry
(
subscription
:
dict
[
str
,
Any
],
tt_number
:
str
,
process_id
:
UUIDstr
)
->
LSOState
:
def
delete_default_routes_dry
(
subscription
:
dict
[
str
,
Any
],
tt_number
:
str
,
process_id
:
UUIDstr
)
->
LSOState
:
"""
Perform a dry run of deleting the default routes.
"""
"""
Perform a dry run of deleting the default routes.
"""
...
...
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