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
!334
Add task for checking NETCONF connectivity of a Site
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add task for checking NETCONF connectivity of a Site
feature/add-oob-check-task
into
develop
Overview
0
Commits
1
Pipelines
1
Changes
4
Merged
Karel van Klink
requested to merge
feature/add-oob-check-task
into
develop
5 months ago
Overview
0
Commits
1
Pipelines
1
Changes
4
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
e3767e61
1 commit,
5 months ago
4 files
+
87
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
gso/migrations/versions/2024-12-18_8a65d0ed588e_add_site_connectivity_check_task.py
0 → 100644
+
39
−
0
Options
"""
Add Site connectivity check task.
Revision ID: 8a65d0ed588e
Revises: 818d4ffe65df
Create Date: 2024-12-18 14:36:35.886366
"""
from
uuid
import
uuid4
import
sqlalchemy
as
sa
from
alembic
import
op
# revision identifiers, used by Alembic.
revision
=
'
8a65d0ed588e
'
down_revision
=
'
818d4ffe65df
'
branch_labels
=
None
depends_on
=
None
workflow
=
{
"
name
"
:
"
task_check_site_connectivity
"
,
"
target
"
:
"
SYSTEM
"
,
"
description
"
:
"
Check Site Connectivity
"
,
"
workflow_id
"
:
uuid4
(),
}
def
upgrade
()
->
None
:
conn
=
op
.
get_bind
()
conn
.
execute
(
sa
.
text
(
"
INSERT INTO workflows VALUES (:workflow_id, :name, :target, :description, now()) ON CONFLICT DO NOTHING
"
),
workflow
,
)
def
downgrade
()
->
None
:
conn
=
op
.
get_bind
()
conn
.
execute
(
sa
.
text
(
"
DELETE FROM workflows WHERE name = :name
"
),
{
"
name
"
:
workflow
[
"
name
"
]})
Loading