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
!34
Feature/nat178 modify capacity iptrunk
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Feature/nat178 modify capacity iptrunk
feature/nat178_modify_capacity_iptrunk
into
develop
Overview
0
Commits
8
Pipelines
0
Changes
10
Closed
Simone Spinelli
requested to merge
feature/nat178_modify_capacity_iptrunk
into
develop
1 year ago
Overview
0
Commits
8
Pipelines
0
Changes
10
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
ac21b28e
8 commits,
1 year ago
10 files
+
390
−
72
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
10
Search (e.g. *.vue) (Ctrl+P)
gso/migrations/versions/2023-06-26_e57ebfade80b_add_iptrunk_modify_workflow.py
0 → 100644
+
39
−
0
Options
"""
add Iptrunk modify workflow.
Revision ID: e57ebfade80b
Revises: 7694b98571f8
Create Date: 2023-06-26 12:20:16.828055
"""
import
sqlalchemy
as
sa
from
alembic
import
op
# revision identifiers, used by Alembic.
revision
=
'
e57ebfade80b
'
down_revision
=
'
7694b98571f8
'
branch_labels
=
None
depends_on
=
None
from
orchestrator.migrations.helpers
import
create_workflow
,
delete_workflow
new_workflows
=
[
{
"
name
"
:
"
modify_generic
"
,
"
target
"
:
"
MODIFY
"
,
"
description
"
:
"
Modify IP trunk
"
,
"
product_type
"
:
"
Iptrunk
"
}
]
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