Skip to content
Snippets Groups Projects

Fix/nokia bfd update

Merged Aleksandr Kurbatov requested to merge fix/nokia-bfd-update into develop
4 files
+ 123
12
Compare changes
  • Side-by-side
  • Inline
Files
4
---
- name: Update Trunk interface BFD on "{{ inventory_hostname }}" [CHECK ONLY][JUNIPER]
when: >
verb == "update"
and
remaining_side.vendor == "juniper"
and
dry_run | ansible.builtin.bool
junipernetworks.junos.junos_config:
update: 'replace'
src: "/var/tmp/ansible_run_{{ opid }}/{{ config_object }}.conf"
src_format: set
check_commit: true
diff: true
when: >
verb == "update" and
remaining_side.vendor == "juniper" and
dry_run | ansible.builtin.bool
- name: Update Trunk interface BFD on "{{ inventory_hostname }}" [AND COMMIT][JUNIPER]
when: >
verb == "update"
and
remaining_side.vendor == "juniper"
and
not (dry_run | ansible.builtin.bool)
junipernetworks.junos.junos_config:
update: 'replace'
src: "/var/tmp/ansible_run_{{ opid }}/{{ config_object }}.conf"
src_format: set
comment: "{{ commit_comment }}"
diff: true
- name: Update Trunk interface BFD on "{{ inventory_hostname }}" [CHECK ONLY][NOKIA]
when: >
verb == "update"
and
remaining_side.vendor == "nokia"
and
dry_run | ansible.builtin.bool
geant.gap_ansible.nokia_netconf_config:
format: xml
default_operation: merge
content: "{{ lookup('ansible.builtin.template', '{{ remaining_side.vendor }}/{{ config_object }}.j2') }}"
commit: true
diff: true
check_mode: true
- name: Update Trunk interface BFD on "{{ inventory_hostname }}" [AND COMMIT][NOKIA]
when: >
verb == "update" and
remaining_side.vendor == "juniper" and
verb == "update"
and
remaining_side.vendor == "nokia"
and
not (dry_run | ansible.builtin.bool)
geant.gap_ansible.nokia_netconf_config:
format: xml
default_operation: merge
content: "{{ lookup('ansible.builtin.template', '{{ remaining_side.vendor }}/{{ config_object }}.j2') }}"
commit: true
commit_comment: "{{ commit_comment }}"
diff: true
check_mode: false
Loading