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
Commits
3e940367
Verified
Commit
3e940367
authored
1 year ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
update behaviour of migrate_to_different_site in IP Trunk migration
parent
570470f0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!140
Feature/update iptrunk migration input form
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gso/workflows/iptrunk/migrate_iptrunk.py
+2
-2
2 additions, 2 deletions
gso/workflows/iptrunk/migrate_iptrunk.py
test/workflows/iptrunk/test_migrate_iptrunk.py
+1
-0
1 addition, 0 deletions
test/workflows/iptrunk/test_migrate_iptrunk.py
with
3 additions
and
2 deletions
gso/workflows/iptrunk/migrate_iptrunk.py
+
2
−
2
View file @
3e940367
...
...
@@ -85,8 +85,8 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator:
current_router_site
=
Router
.
from_subscription
(
router_id
).
router
.
router_site
.
subscription
old_side_site
=
Router
.
from_subscription
(
migrate_form_input
.
replace_side
).
router
.
router_site
if
(
migrate_form_input
.
migrate_to_different_site
and
current_router_site
.
subscription_id
=
=
old_side_site
.
owner_subscription_id
not
migrate_form_input
.
migrate_to_different_site
and
current_router_site
.
subscription_id
!
=
old_side_site
.
owner_subscription_id
):
continue
routers
[
str
(
router_id
)]
=
router
[
"
description
"
]
...
...
This diff is collapsed.
Click to expand it.
test/workflows/iptrunk/test_migrate_iptrunk.py
+
1
−
0
View file @
3e940367
...
...
@@ -76,6 +76,7 @@ def migrate_form_input(
{
"
tt_number
"
:
faker
.
tt_number
(),
"
replace_side
"
:
replace_side
,
"
migrate_to_different_site
"
:
True
,
},
{
"
new_node
"
:
new_router
,
...
...
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