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
!355
add bulk migration for an edge port
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
add bulk migration for an edge port
feature/NAT-936-bulk-migration
into
develop
Overview
11
Commits
8
Pipelines
12
Changes
23
Merged
Mohammad Torkashvand
requested to merge
feature/NAT-936-bulk-migration
into
develop
3 months ago
Overview
11
Commits
8
Pipelines
12
Changes
23
Expand
0
0
Merge request reports
Compare
develop
version 11
433308ee
3 months ago
version 10
985c5eb1
3 months ago
version 9
e9bf99a1
3 months ago
version 8
3c633283
3 months ago
version 7
36b0e742
3 months ago
version 6
39e36de0
3 months ago
version 5
fada3935
3 months ago
version 4
649f388b
3 months ago
version 3
134fb5f8
3 months ago
version 2
43b33a93
3 months ago
version 1
67473b54
3 months ago
develop (base)
and
latest version
latest version
6f16ed7e
8 commits,
3 months ago
version 11
433308ee
8 commits,
3 months ago
version 10
985c5eb1
7 commits,
3 months ago
version 9
e9bf99a1
6 commits,
3 months ago
version 8
3c633283
5 commits,
3 months ago
version 7
36b0e742
4 commits,
3 months ago
version 6
39e36de0
3 commits,
3 months ago
version 5
fada3935
2 commits,
3 months ago
version 4
649f388b
2 commits,
3 months ago
version 3
134fb5f8
2 commits,
3 months ago
version 2
43b33a93
1 commit,
3 months ago
version 1
67473b54
1 commit,
3 months ago
23 files
+
790
−
73
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
23
Search (e.g. *.vue) (Ctrl+P)
gso/migrations/versions/2025-02-06_efebcde91f2f_add_migration_workflow_for_an_edgeport.py
0 → 100644
+
39
−
0
Options
"""
Add a migration workflow for an EdgePort.
Revision ID: efebcde91f2f
Revises: 8a65d0ed588e
Create Date: 2025-01-09 17:17:24.972289
"""
import
sqlalchemy
as
sa
from
alembic
import
op
# revision identifiers, used by Alembic.
revision
=
'
efebcde91f2f
'
down_revision
=
'
16eef776a258
'
branch_labels
=
None
depends_on
=
None
from
orchestrator.migrations.helpers
import
create_workflow
,
delete_workflow
new_workflows
=
[
{
"
name
"
:
"
migrate_edge_port
"
,
"
target
"
:
"
MODIFY
"
,
"
description
"
:
"
Migrate an Edge Port
"
,
"
product_type
"
:
"
EdgePort
"
},
]
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