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
!286
Add Edge Port, GÉANT IP and IAS products
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add Edge Port, GÉANT IP and IAS products
feature/add-geant-ip
into
develop
Overview
6
Commits
68
Pipelines
19
Changes
5
Merged
Karel van Klink
requested to merge
feature/add-geant-ip
into
develop
7 months ago
Overview
3
Commits
68
Pipelines
19
Changes
5
Expand
This includes workflows, tests, migrations, etc.
0
0
Merge request reports
Viewing commit
c3e80d38
Prev
Next
Show latest version
5 files
+
123
−
16
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
Verified
c3e80d38
Add modification workflow for GÉANT IP
· c3e80d38
Karel van Klink
authored
8 months ago
gso/migrations/versions/2024-09-26_289e5334848f_add_géant_ip_modification_workflow.py
0 → 100644
+
39
−
0
Options
"""
Add GÉANT IP modification workflow.
Revision ID: 289e5334848f
Revises: f4239c9361b4
Create Date: 2024-09-26 15:27:51.471877
"""
import
sqlalchemy
as
sa
from
alembic
import
op
# revision identifiers, used by Alembic.
revision
=
'
289e5334848f
'
down_revision
=
'
f4239c9361b4
'
branch_labels
=
None
depends_on
=
None
from
orchestrator.migrations.helpers
import
create_workflow
,
delete_workflow
new_workflows
=
[
{
"
name
"
:
"
modify_geant_ip
"
,
"
target
"
:
"
MODIFY
"
,
"
description
"
:
"
Modify G
\u00c9
ANT IP
"
,
"
product_type
"
:
"
GeantIP
"
}
]
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