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
1f2df23e
Commit
1f2df23e
authored
2 months ago
by
Saket Agrahari
Browse files
Options
Downloads
Patches
Plain Diff
mypy issue
parent
442f6069
No related branches found
No related tags found
No related merge requests found
Pipeline
#94160
failed
2 months ago
Stage: tox
Stage: documentation
Stage: sonarqube
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gso/workflows/iptrunk/create_iptrunk.py
+2
-2
2 additions, 2 deletions
gso/workflows/iptrunk/create_iptrunk.py
gso/workflows/iptrunk/modify_trunk_interface.py
+2
-3
2 additions, 3 deletions
gso/workflows/iptrunk/modify_trunk_interface.py
with
4 additions
and
5 deletions
gso/workflows/iptrunk/create_iptrunk.py
+
2
−
2
View file @
1f2df23e
...
@@ -87,7 +87,7 @@ def initial_input_form_generator(product_name: str) -> FormGenerator:
...
@@ -87,7 +87,7 @@ def initial_input_form_generator(product_name: str) -> FormGenerator:
# Get version choices from config
# Get version choices from config
iptrunk_versions
=
list
(
load_gso_service_config
().
IP_TRUNK
.
version
.
keys
())
iptrunk_versions
=
list
(
load_gso_service_config
().
IP_TRUNK
.
version
.
keys
())
iptrunk_version_choices
=
Choice
(
"
Select version
"
,
[(
v
,
v
)
for
v
in
iptrunk_versions
])
iptrunk_version_choices
=
Choice
(
"
Select version
"
,
[(
v
,
v
)
for
v
in
iptrunk_versions
])
# type: ignore[arg-type]
class
CreateIptrunkForm
(
FormPage
):
class
CreateIptrunkForm
(
FormPage
):
model_config
=
ConfigDict
(
title
=
product_name
)
model_config
=
ConfigDict
(
title
=
product_name
)
...
@@ -99,7 +99,7 @@ def initial_input_form_generator(product_name: str) -> FormGenerator:
...
@@ -99,7 +99,7 @@ def initial_input_form_generator(product_name: str) -> FormGenerator:
iptrunk_speed
:
PhysicalPortCapacity
iptrunk_speed
:
PhysicalPortCapacity
iptrunk_number_of_members
:
int
iptrunk_number_of_members
:
int
iptrunk_description_suffix
:
str
|
None
=
None
iptrunk_description_suffix
:
str
|
None
=
None
iptrunk_config_version
:
iptrunk_version_choices
iptrunk_config_version
:
iptrunk_version_choices
# type: ignore[valid-type]
initial_user_input
=
yield
CreateIptrunkForm
initial_user_input
=
yield
CreateIptrunkForm
recommended_minimum_links
=
calculate_recommended_minimum_links
(
recommended_minimum_links
=
calculate_recommended_minimum_links
(
...
...
This diff is collapsed.
Click to expand it.
gso/workflows/iptrunk/modify_trunk_interface.py
+
2
−
3
View file @
1f2df23e
...
@@ -89,7 +89,7 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator:
...
@@ -89,7 +89,7 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator:
# Get version choices from config (single-select dropdown)
# Get version choices from config (single-select dropdown)
iptrunk_versions
=
list
(
load_gso_service_config
().
IP_TRUNK
.
version
.
keys
())
iptrunk_versions
=
list
(
load_gso_service_config
().
IP_TRUNK
.
version
.
keys
())
iptrunk_version_choices
=
Choice
(
"
Select version
"
,
[(
v
,
v
)
for
v
in
iptrunk_versions
])
iptrunk_version_choices
=
Choice
(
"
Select version
"
,
[(
v
,
v
)
for
v
in
iptrunk_versions
])
# type: ignore[arg-type]
class
ModifyIptrunkForm
(
FormPage
):
class
ModifyIptrunkForm
(
FormPage
):
tt_number
:
TTNumber
tt_number
:
TTNumber
...
@@ -99,9 +99,8 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator:
...
@@ -99,9 +99,8 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator:
]
]
|
None
|
None
)
=
subscription
.
iptrunk
.
gs_id
)
=
subscription
.
iptrunk
.
gs_id
iptrunk_description
:
str
|
None
=
subscription
.
iptrunk
.
iptrunk_description
iptrunk_description
:
str
|
None
=
subscription
.
iptrunk
.
iptrunk_description
iptrunk_config_version
:
iptrunk_version_choices
=
subscription
.
iptrunk
.
iptrunk_config_version
iptrunk_config_version
:
iptrunk_version_choices
=
subscription
.
iptrunk
.
iptrunk_config_version
# type: ignore[valid-type]
iptrunk_type
:
IptrunkType
|
str
=
subscription
.
iptrunk
.
iptrunk_type
# FIXME: remove str workaround
iptrunk_type
:
IptrunkType
|
str
=
subscription
.
iptrunk
.
iptrunk_type
# FIXME: remove str workaround
warning_label
:
Label
=
(
warning_label
:
Label
=
(
"
Changing the PhyPortCapacity will result in the deletion of all AE members.
"
"
Changing the PhyPortCapacity will result in the deletion of all 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