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
68dc9b99
Verified
Commit
68dc9b99
authored
2 months ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
Don't run edge port validation on Juniper routers
parent
9d951b3b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/workflows/edge_port/validate_edge_port.py
+7
-6
7 additions, 6 deletions
gso/workflows/edge_port/validate_edge_port.py
with
7 additions
and
6 deletions
gso/workflows/edge_port/validate_edge_port.py
+
7
−
6
View file @
68dc9b99
...
...
@@ -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
...
...
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