diff --git a/geant/gap_ansible/roles/iptrunk_checks/tasks/check_isis.yaml b/geant/gap_ansible/roles/iptrunk_checks/tasks/check_isis.yaml index 89b664a1fbcc42a9fa9008145e0d54f5262040b5..975c437eed52c03bcfccc322e7fabe9419f0e6f5 100644 --- a/geant/gap_ansible/roles/iptrunk_checks/tasks/check_isis.yaml +++ b/geant/gap_ansible/roles/iptrunk_checks/tasks/check_isis.yaml @@ -2,19 +2,19 @@ when: local_side.iptrunk_side_node.vendor == "juniper" block: - name: Get status of ISIS - juniper_junos_command: + junipernetworks.junos.junos_command: commands: - show isis adjacency - show isis interface "{{ local_side.iptrunk_side_ae_iface }}".0 register: response - - name: Show status of ISIS djacencies + - name: Show status of ISIS adjacencies ansible.builtin.debug: - msg: "{{ response.results[0].stdout_lines }}" + msg: "{{ response.stdout_lines[0] }}" - name: Show status of ISIS interfaces ansible.builtin.debug: - msg: "{{ response.results[1].stdout_lines }}" + msg: "{{ response.stdout_lines[1] }}" - name: Nokia ISIS check when: local_side.iptrunk_side_node.vendor == "nokia" diff --git a/geant/gap_ansible/roles/iptrunk_checks/tasks/check_trunk_interface.yaml b/geant/gap_ansible/roles/iptrunk_checks/tasks/check_trunk_interface.yaml index 324ae18dc4e07fd5042355c5d3306ac7bf9f7372..7465dcd947df8a817a1fa0a82ff786cb8568a6ba 100644 --- a/geant/gap_ansible/roles/iptrunk_checks/tasks/check_trunk_interface.yaml +++ b/geant/gap_ansible/roles/iptrunk_checks/tasks/check_trunk_interface.yaml @@ -2,8 +2,8 @@ when: local_side.iptrunk_side_node.vendor == "juniper" block: - name: Show LACP status - juniper_junos_command: - command: "show lacp interface {{ local_side.iptrunk_side_ae_iface }}" + junipernetworks.junos.junos_command: + commands: "show lacp interface {{ local_side.iptrunk_side_ae_iface }}" register: response - name: Print the LACP status.