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
!294
validate_edge_port: add partner_name
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
validate_edge_port: add partner_name
fix/edge_port
into
develop
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Aleksandr Kurbatov
requested to merge
fix/edge_port
into
develop
6 months ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
7f913205
1 commit,
6 months ago
1 file
+
3
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
gso/workflows/edge_port/validate_edge_port.py
+
3
−
0
Options
@@ -12,6 +12,7 @@ from orchestrator.workflows.utils import wrap_modify_initial_input_form
from
gso.products.product_types.edge_port
import
EdgePort
from
gso.services.lso_client
import
LSOState
,
anonymous_lso_interaction
from
gso.services.netbox_client
import
NetboxClient
from
gso.services.partners
import
get_partner_by_id
@step
(
"
Prepare required keys in state
"
)
@@ -58,12 +59,14 @@ def verify_netbox_entries(subscription: EdgePort) -> None:
@step
(
"
Check base config for drift
"
)
def
verify_base_config
(
subscription
:
dict
[
str
,
Any
])
->
LSOState
:
"""
Workflow step for running a playbook that checks whether base config has drifted.
"""
partner_name
=
get_partner_by_id
(
subscription
[
"
customer_id
"
]).
name
return
{
"
playbook_name
"
:
"
gap_ansible/playbooks/edge_port.yaml
"
,
"
inventory
"
:
{
"
all
"
:
{
"
hosts
"
:
{
subscription
[
"
edge_port
"
][
"
node
"
][
"
router_fqdn
"
]:
None
}}},
"
extra_vars
"
:
{
"
dry_run
"
:
True
,
"
subscription
"
:
subscription
,
"
partner_name
"
:
partner_name
,
"
verb
"
:
"
create
"
,
"
is_verification_workflow
"
:
"
true
"
,
},
Loading