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
1e268b8d
Commit
1e268b8d
authored
1 month ago
by
Aleksandr Kurbatov
Browse files
Options
Downloads
Patches
Plain Diff
Initial work to update edge_port
parent
602ab277
No related branches found
No related tags found
No related merge requests found
Pipeline
#94252
failed
1 month ago
Stage: tox
Stage: documentation
Stage: sonarqube
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gso/products/product_blocks/edge_port.py
+3
-0
3 additions, 0 deletions
gso/products/product_blocks/edge_port.py
gso/workflows/edge_port/create_edge_port.py
+4
-0
4 additions, 0 deletions
gso/workflows/edge_port/create_edge_port.py
with
7 additions
and
0 deletions
gso/products/product_blocks/edge_port.py
+
3
−
0
View file @
1e268b8d
...
@@ -70,6 +70,7 @@ class EdgePortBlockInactive(
...
@@ -70,6 +70,7 @@ class EdgePortBlockInactive(
edge_port_name
:
str
|
None
=
None
edge_port_name
:
str
|
None
=
None
edge_port_description
:
str
|
None
=
None
edge_port_description
:
str
|
None
=
None
enable_lacp
:
bool
|
None
=
None
enable_lacp
:
bool
|
None
=
None
lacp_xmit_interval_slow
:
bool
=
False
encapsulation
:
EncapsulationType
=
EncapsulationType
.
DOT1Q
encapsulation
:
EncapsulationType
=
EncapsulationType
.
DOT1Q
mac_address
:
str
|
None
=
None
mac_address
:
str
|
None
=
None
member_speed
:
PhysicalPortCapacity
|
None
=
None
member_speed
:
PhysicalPortCapacity
|
None
=
None
...
@@ -88,6 +89,7 @@ class EdgePortBlockProvisioning(EdgePortBlockInactive, lifecycle=[SubscriptionLi
...
@@ -88,6 +89,7 @@ class EdgePortBlockProvisioning(EdgePortBlockInactive, lifecycle=[SubscriptionLi
edge_port_name
:
str
edge_port_name
:
str
edge_port_description
:
str
|
None
=
None
edge_port_description
:
str
|
None
=
None
enable_lacp
:
bool
enable_lacp
:
bool
lacp_xmit_interval_slow
:
bool
=
False
encapsulation
:
EncapsulationType
=
EncapsulationType
.
DOT1Q
encapsulation
:
EncapsulationType
=
EncapsulationType
.
DOT1Q
mac_address
:
str
|
None
=
None
mac_address
:
str
|
None
=
None
member_speed
:
PhysicalPortCapacity
member_speed
:
PhysicalPortCapacity
...
@@ -122,6 +124,7 @@ class EdgePortBlock(EdgePortBlockProvisioning, lifecycle=[SubscriptionLifecycle.
...
@@ -122,6 +124,7 @@ class EdgePortBlock(EdgePortBlockProvisioning, lifecycle=[SubscriptionLifecycle.
edge_port_name
:
str
edge_port_name
:
str
edge_port_description
:
str
|
None
=
None
edge_port_description
:
str
|
None
=
None
enable_lacp
:
bool
enable_lacp
:
bool
lacp_xmit_interval_slow
:
bool
=
False
encapsulation
:
EncapsulationType
=
EncapsulationType
.
DOT1Q
encapsulation
:
EncapsulationType
=
EncapsulationType
.
DOT1Q
mac_address
:
str
|
None
=
None
mac_address
:
str
|
None
=
None
member_speed
:
PhysicalPortCapacity
member_speed
:
PhysicalPortCapacity
...
...
This diff is collapsed.
Click to expand it.
gso/workflows/edge_port/create_edge_port.py
+
4
−
0
View file @
1e268b8d
...
@@ -50,6 +50,7 @@ def initial_input_form_generator(product_name: str) -> FormGenerator:
...
@@ -50,6 +50,7 @@ def initial_input_form_generator(product_name: str) -> FormGenerator:
partner
:
partner_choice
()
# type: ignore[valid-type]
partner
:
partner_choice
()
# type: ignore[valid-type]
service_type
:
EdgePortType
service_type
:
EdgePortType
enable_lacp
:
bool
=
False
enable_lacp
:
bool
=
False
lacp_xmit_interval_slow
:
bool
=
False
speed
:
PhysicalPortCapacity
speed
:
PhysicalPortCapacity
encapsulation
:
EncapsulationType
|
str
=
EncapsulationType
.
DOT1Q
# TODO: remove type hint workaround
encapsulation
:
EncapsulationType
|
str
=
EncapsulationType
.
DOT1Q
# TODO: remove type hint workaround
number_of_members
:
int
number_of_members
:
int
...
@@ -130,6 +131,7 @@ def initial_input_form_generator(product_name: str) -> FormGenerator:
...
@@ -130,6 +131,7 @@ def initial_input_form_generator(product_name: str) -> FormGenerator:
"
mac_address
"
,
"
mac_address
"
,
"
ignore_if_down
"
,
"
ignore_if_down
"
,
"
enable_lacp
"
,
"
enable_lacp
"
,
"
lacp_xmit_interval_slow
"
,
"
edge_port_name
"
,
"
edge_port_name
"
,
"
edge_port_description
"
,
"
edge_port_description
"
,
"
edge_port_ae_members
"
,
"
edge_port_ae_members
"
,
...
@@ -162,6 +164,7 @@ def initialize_subscription(
...
@@ -162,6 +164,7 @@ def initialize_subscription(
mac_address
:
str
|
None
,
mac_address
:
str
|
None
,
partner
:
str
,
partner
:
str
,
enable_lacp
:
bool
,
# noqa: FBT001
enable_lacp
:
bool
,
# noqa: FBT001
lacp_xmit_interval_slow
:
bool
,
#noqa: FBT001
ignore_if_down
:
bool
,
# noqa: FBT001
ignore_if_down
:
bool
,
# noqa: FBT001
generate_ga_id
:
bool
,
# noqa: FBT001
generate_ga_id
:
bool
,
# noqa: FBT001
ae_members
:
list
[
dict
[
str
,
Any
]],
ae_members
:
list
[
dict
[
str
,
Any
]],
...
@@ -174,6 +177,7 @@ def initialize_subscription(
...
@@ -174,6 +177,7 @@ def initialize_subscription(
subscription
.
edge_port
.
node
=
router
subscription
.
edge_port
.
node
=
router
subscription
.
edge_port
.
edge_port_type
=
service_type
subscription
.
edge_port
.
edge_port_type
=
service_type
subscription
.
edge_port
.
enable_lacp
=
enable_lacp
subscription
.
edge_port
.
enable_lacp
=
enable_lacp
subscription
.
edge_port
.
lacp_xmit_interval_slow
=
lacp_xmit_interval_slow
subscription
.
edge_port
.
member_speed
=
speed
subscription
.
edge_port
.
member_speed
=
speed
subscription
.
edge_port
.
encapsulation
=
encapsulation
subscription
.
edge_port
.
encapsulation
=
encapsulation
subscription
.
edge_port
.
edge_port_name
=
name
subscription
.
edge_port
.
edge_port_name
=
name
...
...
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