Skip to content
Snippets Groups Projects
Commit 7f3704a0 authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

Merge branch 'verification_iptrunk' into 'develop'

IPtrunk: validation workflow additions

See merge request !152
parents b8d5857e e13c1b3a
No related branches found
No related tags found
1 merge request!152IPtrunk: validation workflow additions
Pipeline #87586 passed
......@@ -6,11 +6,22 @@
src_format: text
check_commit: true
diff: true
register: output
when: >
verb == "deploy" and
local_side.iptrunk_side_node.vendor == "juniper" and
dry_run | ansible.builtin.bool
- name: Fail if there is any diff
ansible.builtin.fail:
msg: Trunk 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]
junipernetworks.junos.junos_config:
update: 'replace'
......@@ -23,14 +34,6 @@
local_side.iptrunk_side_node.vendor == "juniper" and
not (dry_run | ansible.builtin.bool)
# - name: Show real diff of "{{ config_object }}"
# ansible.builtin.debug:
# msg: "{{ response }}"
# when: >
# verb == "deploy" and
# local_side.iptrunk_side_node.vendor == "juniper" and
# not (dry_run | ansible.builtin.bool)
- name: Deploy "{{ config_object }}" on "{{ inventory_hostname }}" [CHECK ONLY][NOKIA]
# ansible.netcommon.netconf_config:
geant.gap_ansible.nokia_netconf_config:
......@@ -39,12 +42,23 @@
content: "{{ lookup('ansible.builtin.template', '{{ local_side.iptrunk_side_node.vendor }}/{{ config_object }}.j2') }}"
commit: true
diff: true
register: output
check_mode: true
when: >
verb == "deploy" and
( dry_run | ansible.builtin.bool ) is true and
local_side.iptrunk_side_node.vendor == "nokia"
- name: Fail if there is any diff
ansible.builtin.fail:
msg: Trunk 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]
# ansible.netcommon.netconf_config:
geant.gap_ansible.nokia_netconf_config:
......
......@@ -96,7 +96,7 @@
<interface alu:operation="replace">
<interface-name>{{ local.ae_name | lower }}.0</interface-name>
<admin-state>enable</admin-state>
<description>SRV_GLOBAL INFRASTRUCTURE BACKBONE #{{ trunk_direction_name_sorted[0] }}-{{ trunk_direction_name_sorted[1] }}-IPTRUNK ${{ trunk.id }}| {{ trunk_direction_name_sorted[0] }}-{{ trunk_direction_name_sorted[1] }} | {{ common.description }}</description>
<description>SRV_GLOBAL INFRASTRUCTURE BACKBONE #{{ trunk_direction_name_sorted[0] }}-{{ trunk_direction_name_sorted[1] }}-IPTRUNK ${{ trunk.id }} | {{ trunk_direction_name_sorted[0] }}-{{ trunk_direction_name_sorted[1] }} | {{ common.description }}</description>
<ip-mtu>{{ mtu_ip }}</ip-mtu>
<port>{{ local.ae_name | lower }}</port>
<ipv4>
......
......@@ -4,6 +4,7 @@
#
dry_run: "True"
is_verification_workflow: false
verbs:
- "compile"
......
......@@ -6,11 +6,22 @@
src_format: text
check_commit: true
diff: true
register: output
when: >
local_side.iptrunk_side_node.vendor == "juniper"
and
( 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]
junipernetworks.junos.junos_config:
update: 'replace'
......@@ -31,12 +42,23 @@
content: "{{ lookup('ansible.builtin.template', '{{ local_side.iptrunk_side_node.vendor }}/{{ config_object }}.j2') }}"
commit: true
diff: true
register: output
check_mode: true
when: >
local_side.iptrunk_side_node.vendor == "nokia"
and
( 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]
# ansible.netcommon.netconf_config:
geant.gap_ansible.nokia_netconf_config:
......
......@@ -4,6 +4,7 @@
#
dry_run: "True"
is_verification_workflow: false
nokia_twamp_server:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment