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

iptrunk_checks: added LLDP checks

parent f8734b45
Branches
Tags
1 merge request!149iptrunk_checks: added LLDP checks
Pipeline #87462 passed
# GAP Ansible changelog
1.0.77:
- `iptrunk_migration`: if trunk is `Leased`, update the target BFD address (LO of the new node) after migration and check the BFD status.
- `iptrunk_checks`: added LLDP check - simpple `show lldp neighbors`.
1.0.76:
- fixes in `iptrunk_migration` role (BFD, min-links, corrected interface descriptions)
1.0.75:
......
- name: Juniper LLDP check
when: local_side.iptrunk_side_node.vendor == "juniper"
block:
- name: Get LLDP neighbors
junipernetworks.junos.junos_command:
commands:
- show lldp neighbors
register: response
- name: Show LLDP neighbors
ansible.builtin.debug:
msg: "{{ response.stdout_lines[0] }}"
- name: Nokia BFD check
when: local_side.iptrunk_side_node.vendor == "nokia"
block:
- name: Get LLDP neighbors
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 system lldp neighbor</md-cli-input-line>
</md-cli-raw-command>
</global-operations>
display: json
register: out
- name: Show LLDP neighbors
ansible.builtin.debug:
msg: "{{out.output['rpc-reply']['nokiaoper:results']['nokiaoper:md-cli-output-block'].split('\n')}}"
......@@ -85,6 +85,10 @@
ansible.builtin.include_tasks: check_bfd.yaml
when: check == "bfd"
- name: Check LLDP
ansible.builtin.include_tasks: check_lldp.yaml
when: check == "lldp"
- name: Set the optical checks results directory name
when: check == "optical_pre" or check == "optical_post"
ansible.builtin.set_fact:
......
......@@ -3,6 +3,7 @@
#
checks:
- bfd
- lldp
- isis
- ping
- lacp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment