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
1
Merged
Karel van Klink
requested to merge
feature/add-geant-ip
into
develop
7 months ago
Overview
6
Commits
68
Pipelines
19
Changes
1
Expand
This includes workflows, tests, migrations, etc.
0
0
Merge request reports
Viewing commit
bd73fa43
Show latest version
1 file
+
11
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
bd73fa43
Update create edge port workflow after refactoring the model
· bd73fa43
Neda Moeini
authored
7 months ago
gso/workflows/edge_port/create_edge_port.py
+
11
−
11
Options
@@ -104,7 +104,7 @@ def initialize_subscription(
service_type
:
EdgePortType
,
speed
:
PhysicalPortCapacity
,
encapsulation
:
EncapsulationType
,
edge_port_
name
:
str
,
name
:
str
,
minimum_links
:
int
,
geant_ga_id
:
str
|
None
,
mac_address
:
str
|
None
,
@@ -116,18 +116,18 @@ def initialize_subscription(
)
->
State
:
"""
Initialise the subscription object in the service database.
"""
router
=
Router
.
from_subscription
(
node
).
router
subscription
.
edge_port
.
edge_port_
node
=
router
subscription
.
edge_port
.
node
=
router
subscription
.
edge_port
.
edge_port_type
=
service_type
subscription
.
edge_port
.
edge_port_
enable_lacp
=
enable_lacp
subscription
.
edge_port
.
edge_port_
member_speed
=
speed
subscription
.
edge_port
.
edge_port_
encapsulation
=
encapsulation
subscription
.
edge_port
.
edge_port_name
=
edge_port_
name
subscription
.
edge_port
.
edge_port_
minimum_links
=
minimum_links
subscription
.
edge_port
.
edge_port_
ignore_if_down
=
ignore_if_down
subscription
.
edge_port
.
edge_port_
geant_ga_id
=
geant_ga_id
subscription
.
edge_port
.
edge_port_
mac_address
=
mac_address
subscription
.
edge_port
.
enable_lacp
=
enable_lacp
subscription
.
edge_port
.
member_speed
=
speed
subscription
.
edge_port
.
encapsulation
=
encapsulation
subscription
.
edge_port
.
edge_port_name
=
name
subscription
.
edge_port
.
minimum_links
=
minimum_links
subscription
.
edge_port
.
ignore_if_down
=
ignore_if_down
subscription
.
edge_port
.
geant_ga_id
=
geant_ga_id
subscription
.
edge_port
.
mac_address
=
mac_address
partner_name
=
get_partner_by_id
(
partner
).
name
subscription
.
description
=
(
f
"
Edge Port
{
edge_port_
name
}
on
{
router
.
router_fqdn
}
,
"
subscription
.
description
=
(
f
"
Edge Port
{
name
}
on
{
router
.
router_fqdn
}
,
"
f
"
{
partner_name
}
,
{
geant_ga_id
or
""
}
"
)
subscription
.
edge_port
.
edge_port_description
=
description
for
member
in
ae_members
:
Loading