diff --git a/geant/gap_ansible/roles/iptrunk_checks/tasks/check_optical_levels.yaml b/geant/gap_ansible/roles/iptrunk_checks/tasks/check_optical_levels.yaml index 87170921a40dd8c078adcd50b72f1c9bd46b7ac3..c8e2a5ebc57be8f4d885c40c9743789918e84d59 100644 --- a/geant/gap_ansible/roles/iptrunk_checks/tasks/check_optical_levels.yaml +++ b/geant/gap_ansible/roles/iptrunk_checks/tasks/check_optical_levels.yaml @@ -1,6 +1,9 @@ --- - name: Get Junos attributes for optical levels of interface "{{ item }}" - when: local_side.iptrunk_side_node.vendor == "juniper" + when: >- + local_side.iptrunk_side_node.vendor == "juniper" + and + ae_member.interface_name is regex("^et-*") block: - name: Run Juniper Optical info junipernetworks.junos.junos_command: