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

`iptrunk_checks` updates - added BFD check

parent d4e66512
No related branches found
No related tags found
1 merge request!148`iptrunk_migration` updates related to BFD
Pipeline #87433 passed
- name: Juniper BFD check
when: local_side.iptrunk_side_node.vendor == "juniper"
block:
- name: Get status of BFD for neighbor "{{ new_node.router.router_lo_ipv4_address }}"
junipernetworks.junos.junos_command:
commands:
- show bfd session address "{{ new_node.router.router_lo_ipv4_address }}"
register: response
- name: Show status of BFD neigbor
ansible.builtin.debug:
msg: "{{ response.stdout_lines[0] }}"
- name: Nokia BFD check
when: local_side.iptrunk_side_node.vendor == "nokia"
block:
- name: Get status of BFD for neighbor "{{ new_node.router.router_lo_ipv4_address }}"
ansible.netcommon.netconf_rpc:
rpc: action
xmlns: "urn:ietf:params:xml:ns:yang:1"
content: |
<global-operations xmlns="urn:nokia.com:sros:ns:yang:sr:oper-global">
<md-cli-raw-command>
<md-cli-input-line>show lag {{ local_side.iptrunk_side_ae_iface | lower }} bfd</md-cli-input-line>
</md-cli-raw-command>
</global-operations>
display: json
register: out
- name: Show BFD status
ansible.builtin.debug:
msg: "{{out.output['rpc-reply']['nokiaoper:results']['nokiaoper:md-cli-output-block'].split('\n')}}"
...@@ -81,6 +81,10 @@ ...@@ -81,6 +81,10 @@
ansible.builtin.include_tasks: check_trunk_interface.yaml ansible.builtin.include_tasks: check_trunk_interface.yaml
when: check == "ping" when: check == "ping"
- name: Check BFD
ansible.builtin.include_tasks: check_bfd.yaml
when: check == "bfd"
- name: Set the optical checks results directory name - name: Set the optical checks results directory name
when: check == "optical_pre" or check == "optical_post" when: check == "optical_pre" or check == "optical_post"
ansible.builtin.set_fact: ansible.builtin.set_fact:
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# vars file for iptrunks # vars file for iptrunks
# #
checks: checks:
- bfd
- isis - isis
- ping - ping
- lacp - lacp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment