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
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
8b153ad4
Verified
Commit
8b153ad4
authored
3 months ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
Update playbook verbs for pre- and post-deployment checks in P to PE promotion
parent
fd2b3ef9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!317
Update playbook verbs for pre- and post-deployment checks in P to PE promotion
Pipeline
#90711
passed
3 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/router/promote_p_to_pe.py
+12
-12
12 additions, 12 deletions
gso/workflows/router/promote_p_to_pe.py
with
12 additions
and
12 deletions
gso/workflows/router/promote_p_to_pe.py
+
12
−
12
View file @
8b153ad4
...
...
@@ -60,14 +60,14 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator:
return
user_input
.
model_dump
()
|
{
"
subscription
"
:
subscription
}
@step
(
"
Evacuate the router by setting isis_overload
"
)
def
set_isis_overload
(
subscription
:
dict
[
str
,
Any
],
tt_number
:
str
,
process_id
:
UUIDstr
)
->
LSOState
:
"""
Evacuate the router by setting isis overload
.
"""
@step
(
"
Run pre-deployment checks
"
)
def
run_pre_checks
(
subscription
:
dict
[
str
,
Any
],
tt_number
:
str
,
process_id
:
UUIDstr
)
->
LSOState
:
"""
Run pre-deployment checks
.
"""
extra_vars
=
{
"
dry_run
"
:
False
,
"
subscription
"
:
subscription
,
"
commit_comment
"
:
f
"
GSO_PROCESS_ID:
{
process_id
}
- TT_NUMBER:
{
tt_number
}
-
Set ISIS overload
"
,
"
verb
"
:
"
set_isis_overload
"
,
"
commit_comment
"
:
f
"
GSO_PROCESS_ID:
{
process_id
}
- TT_NUMBER:
{
tt_number
}
-
pre-deployment checks
"
,
"
verb
"
:
"
pre_checks
"
,
}
return
{
...
...
@@ -199,14 +199,14 @@ def deploy_routing_instances_real(subscription: dict[str, Any], tt_number: str,
}
@step
(
"
R
emove ISIS overload
"
)
def
r
emove_isis_overload
(
subscription
:
dict
[
str
,
Any
],
tt_number
:
str
,
process_id
:
UUIDstr
)
->
LSOState
:
"""
R
emove :term:`ISIS` overload
.
"""
@step
(
"
R
un post-deployment checks
"
)
def
r
un_post_checks
(
subscription
:
dict
[
str
,
Any
],
tt_number
:
str
,
process_id
:
UUIDstr
)
->
LSOState
:
"""
R
un post-deployment checks
.
"""
extra_vars
=
{
"
dry_run
"
:
False
,
"
subscription
"
:
subscription
,
"
commit_comment
"
:
f
"
GSO_PROCESS_ID:
{
process_id
}
- TT_NUMBER:
{
tt_number
}
- R
emove ISIS overload
"
,
"
verb
"
:
"
remove_isis_overload
"
,
"
commit_comment
"
:
f
"
GSO_PROCESS_ID:
{
process_id
}
- TT_NUMBER:
{
tt_number
}
- R
un post-deployment checks
"
,
"
verb
"
:
"
post_checks
"
,
}
return
{
...
...
@@ -271,7 +271,7 @@ def promote_p_to_pe() -> StepList:
begin
>>
store_process_subscription
(
Target
.
MODIFY
)
>>
unsync
>>
lso_interaction
(
set_isis_overload
)
>>
lso_interaction
(
run_pre_checks
)
>>
lso_interaction
(
deploy_pe_base_config_dry
)
>>
lso_interaction
(
deploy_pe_base_config_real
)
>>
prompt_insert_in_earl
...
...
@@ -294,7 +294,7 @@ def promote_p_to_pe() -> StepList:
>>
lso_interaction
(
add_pe_to_all_p_real
)
>>
lso_interaction
(
delete_default_routes_dry
)
>>
lso_interaction
(
delete_default_routes_real
)
>>
lso_interaction
(
r
emove_isis_overload
)
>>
lso_interaction
(
r
un_post_checks
)
>>
update_subscription_model
>>
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