Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GAP Ansible Collection
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
GAP Ansible Collection
Commits
e13c1b3a
Commit
e13c1b3a
authored
10 months ago
by
Aleksandr Kurbatov
Browse files
Options
Downloads
Patches
Plain Diff
TWAMP: verification workflow additions
parent
0916fbf4
No related branches found
No related tags found
1 merge request
!152
IPtrunk: validation workflow additions
Pipeline
#87585
passed
10 months ago
Stage: linting
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
geant/gap_ansible/roles/iptrunk_twamp/tasks/deploy_object.yaml
+22
-0
22 additions, 0 deletions
.../gap_ansible/roles/iptrunk_twamp/tasks/deploy_object.yaml
geant/gap_ansible/roles/iptrunk_twamp/vars/main.yml
+1
-0
1 addition, 0 deletions
geant/gap_ansible/roles/iptrunk_twamp/vars/main.yml
with
23 additions
and
0 deletions
geant/gap_ansible/roles/iptrunk_twamp/tasks/deploy_object.yaml
+
22
−
0
View file @
e13c1b3a
...
@@ -6,11 +6,22 @@
...
@@ -6,11 +6,22 @@
src_format
:
text
src_format
:
text
check_commit
:
true
check_commit
:
true
diff
:
true
diff
:
true
register
:
output
when
:
>
when
:
>
local_side.iptrunk_side_node.vendor == "juniper"
local_side.iptrunk_side_node.vendor == "juniper"
and
and
( dry_run | ansible.builtin.bool )
( dry_run | ansible.builtin.bool )
-
name
:
Fail if there is any diff
ansible.builtin.fail
:
msg
:
TWAMP config drift detected!!!
when
:
>
output.changed | ansible.builtin.bool
and
is_verification_workflow | ansible.builtin.bool
and
local_side.iptrunk_side_node.vendor == "juniper"
-
name
:
Deploy "{{ config_object }}" on "{{ inventory_hostname }}" [AND COMMIT][JUNIPER]
-
name
:
Deploy "{{ config_object }}" on "{{ inventory_hostname }}" [AND COMMIT][JUNIPER]
junipernetworks.junos.junos_config
:
junipernetworks.junos.junos_config
:
update
:
'
replace'
update
:
'
replace'
...
@@ -31,12 +42,23 @@
...
@@ -31,12 +42,23 @@
content
:
"
{{
lookup('ansible.builtin.template',
'{{
local_side.iptrunk_side_node.vendor
}}/{{
config_object
}}.j2')
}}"
content
:
"
{{
lookup('ansible.builtin.template',
'{{
local_side.iptrunk_side_node.vendor
}}/{{
config_object
}}.j2')
}}"
commit
:
true
commit
:
true
diff
:
true
diff
:
true
register
:
output
check_mode
:
true
check_mode
:
true
when
:
>
when
:
>
local_side.iptrunk_side_node.vendor == "nokia"
local_side.iptrunk_side_node.vendor == "nokia"
and
and
( dry_run | ansible.builtin.bool )
( dry_run | ansible.builtin.bool )
-
name
:
Fail if there is any diff
ansible.builtin.fail
:
msg
:
TWAMP config drift detected!!!
when
:
>
output.changed | ansible.builtin.bool
and
is_verification_workflow | ansible.builtin.bool
and
local_side.iptrunk_side_node.vendor == "nokia"
-
name
:
Deploy "{{ config_object }}"on "{{ inventory_hostname }}" [AND COMMIT][NOKIA]
-
name
:
Deploy "{{ config_object }}"on "{{ inventory_hostname }}" [AND COMMIT][NOKIA]
# ansible.netcommon.netconf_config:
# ansible.netcommon.netconf_config:
geant.gap_ansible.nokia_netconf_config
:
geant.gap_ansible.nokia_netconf_config
:
...
...
This diff is collapsed.
Click to expand it.
geant/gap_ansible/roles/iptrunk_twamp/vars/main.yml
+
1
−
0
View file @
e13c1b3a
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
#
#
dry_run
:
"
True"
dry_run
:
"
True"
is_verification_workflow
:
false
nokia_twamp_server
:
nokia_twamp_server
:
...
...
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