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
!422
Don't run edge port validation on Juniper routers
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Don't run edge port validation on Juniper routers
feature/edge-port-validation
into
develop
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Karel van Klink
requested to merge
feature/edge-port-validation
into
develop
1 month ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Closes
NAT-1176
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
0f14760a
1 commit,
1 month ago
1 file
+
7
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
gso/workflows/edge_port/validate_edge_port.py
+
7
−
6
Options
@@ -78,21 +78,22 @@ def verify_base_config(subscription: dict[str, Any]) -> LSOState:
"
Validate Edge Port Configuration
"
,
target
=
Target
.
SYSTEM
,
initial_input_form
=
wrap_modify_initial_input_form
(
None
)
)
def
validate_edge_port
()
->
StepList
:
"""
Validate an existing, active Edge port subscription.
"""
Validate an existing, active Edge port subscription
if it is on a Nokia device
.
* Check correct configuration of interfaces in NetBox
, only when the Edge Port is on a Nokia device
.
* Check correct configuration of interfaces in NetBox.
* Verify create Edge port configuration.
"""
edge_port_is_on_
nokia
=
conditional
(
lambda
state
:
state
[
"
subscription
"
][
"
edge_port
"
][
"
node
"
][
"
vendor
"
]
==
Vendor
.
NOKIA
edge_port_is_on_
juniper
=
conditional
(
lambda
state
:
state
[
"
subscription
"
][
"
edge_port
"
][
"
node
"
][
"
vendor
"
]
==
Vendor
.
JUNIPER
)
return
(
begin
>>
store_process_subscription
(
Target
.
SYSTEM
)
>>
unsync
>>
prepare_state
>>
edge_port_is_on_nokia
(
verify_netbox_entries
)
>>
edge_port_is_on_juniper
(
done
)
>>
unsync
>>
verify_netbox_entries
>>
anonymous_lso_interaction
(
verify_base_config
)
>>
resync
>>
done
Loading