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
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
4c30a2b9
Verified
Commit
4c30a2b9
authored
5 months ago
by
Neda Moeini
Committed by
Karel van Klink
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Update create edge port workflow after refactoring the model
parent
52c83fc9
No related branches found
No related tags found
1 merge request
!286
Add Edge Port, GÉANT IP and IAS products
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/workflows/edge_port/create_edge_port.py
+11
-11
11 additions, 11 deletions
gso/workflows/edge_port/create_edge_port.py
with
11 additions
and
11 deletions
gso/workflows/edge_port/create_edge_port.py
+
11
−
11
View file @
4c30a2b9
...
...
@@ -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
:
...
...
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