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
Merge requests
!12
Add sites, and add integration of IPtrunks and routers with LSO deployment
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add sites, and add integration of IPtrunks and routers with LSO deployment
feature/new_device_model_and_sites_and_orgs
into
develop
Overview
0
Commits
25
Pipelines
0
Changes
8
Merged
Karel van Klink
requested to merge
feature/new_device_model_and_sites_and_orgs
into
develop
2 years ago
Overview
0
Commits
25
Pipelines
0
Changes
8
Expand
0
0
Merge request reports
Viewing commit
b754fd1f
Prev
Next
Show latest version
8 files
+
162
−
32
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
b754fd1f
Add iptrunks termination plus compile is working
· b754fd1f
Simone Spinelli
authored
2 years ago
gso/migrations/versions/2023-05-08_61f8e90581c5_add_terminate_device_workflow.py
0 → 100644
+
39
−
0
Options
"""
add Terminate device workflow.
Revision ID: 61f8e90581c5
Revises: 21e7bb0e5cad
Create Date: 2023-05-08 10:48:21.655880
"""
import
sqlalchemy
as
sa
from
alembic
import
op
# revision identifiers, used by Alembic.
revision
=
'
61f8e90581c5
'
down_revision
=
'
21e7bb0e5cad
'
branch_labels
=
None
depends_on
=
None
from
orchestrator.migrations.helpers
import
create_workflow
,
delete_workflow
new_workflows
=
[
{
"
name
"
:
"
terminate_device
"
,
"
target
"
:
"
TERMINATE
"
,
"
description
"
:
"
Terminate device
"
,
"
product_type
"
:
"
Device
"
}
]
def
upgrade
()
->
None
:
conn
=
op
.
get_bind
()
for
workflow
in
new_workflows
:
create_workflow
(
conn
,
workflow
)
def
downgrade
()
->
None
:
conn
=
op
.
get_bind
()
for
workflow
in
new_workflows
:
delete_workflow
(
conn
,
workflow
[
"
name
"
])
Loading