diff --git a/test/integration/targets/junos_command/tests/netconf_json/bad_operator.yaml b/test/integration/targets/junos_command/tests/netconf_json/bad_operator.yaml index 03ada82d34..33fa7e5b9a 100644 --- a/test/integration/targets/junos_command/tests/netconf_json/bad_operator.yaml +++ b/test/integration/targets/junos_command/tests/netconf_json/bad_operator.yaml @@ -5,9 +5,9 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 wait_for: - - "result[0]['software-information'][0]['host-name'][0]['data'] foo fxp0" + - "result[0]['software-information'][0]['host-name'][0]['data'] foo lo0" format: json provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_json/contains.yaml b/test/integration/targets/junos_command/tests/netconf_json/contains.yaml index 51210f7b8d..c7b333c3ec 100644 --- a/test/integration/targets/junos_command/tests/netconf_json/contains.yaml +++ b/test/integration/targets/junos_command/tests/netconf_json/contains.yaml @@ -5,11 +5,10 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: json wait_for: - - "result[0]['software-information'][0]['host-name'][0]['data'] contains {{ inventory_hostname_short }}" - - "result[1]['interface-information'][0]['physical-interface'][0]['name'][0]['data'] contains fxp0" + - "result[1]['interface-information'][0]['physical-interface'][0]['name'][0]['data'] contains lo0" provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_json/equal.yaml b/test/integration/targets/junos_command/tests/netconf_json/equal.yaml index 2184880426..fad9817a94 100644 --- a/test/integration/targets/junos_command/tests/netconf_json/equal.yaml +++ b/test/integration/targets/junos_command/tests/netconf_json/equal.yaml @@ -5,10 +5,9 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 wait_for: - - "result[0]['software-information'][0]['host-name'][0]['data'] == {{ inventory_hostname_short }}" - - "result[1]['interface-information'][0]['physical-interface'][0]['name'][0]['data'] == fxp0" + - "result[1]['interface-information'][0]['physical-interface'][0]['name'][0]['data'] == lo0" format: json provider: "{{ netconf }}" register: result @@ -23,10 +22,9 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 wait_for: - - "result[0]['software-information'][0]['host-name'][0]['data'] eq {{ inventory_hostname_short }}" - - "result[1]['interface-information'][0]['physical-interface'][0]['name'][0]['data'] eq fxp0" + - "result[1]['interface-information'][0]['physical-interface'][0]['name'][0]['data'] eq lo0" format: json provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_json/greaterthan.yaml b/test/integration/targets/junos_command/tests/netconf_json/greaterthan.yaml index 923152c33d..94854b9608 100644 --- a/test/integration/targets/junos_command/tests/netconf_json/greaterthan.yaml +++ b/test/integration/targets/junos_command/tests/netconf_json/greaterthan.yaml @@ -5,10 +5,10 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: json wait_for: - - "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['data'] gt 1500" + - "result[1]['interface-information'][0]['physical-interface'][0]['local-index'][0]['data'] gt 5" provider: "{{ netconf }}" register: result @@ -22,10 +22,10 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: json wait_for: - - "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['data'] > 1500" + - "result[1]['interface-information'][0]['physical-interface'][0]['local-index'][0]['data'] > 5" provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_json/greaterthanorequal.yaml b/test/integration/targets/junos_command/tests/netconf_json/greaterthanorequal.yaml index 9f52587144..cab4125cb9 100644 --- a/test/integration/targets/junos_command/tests/netconf_json/greaterthanorequal.yaml +++ b/test/integration/targets/junos_command/tests/netconf_json/greaterthanorequal.yaml @@ -5,10 +5,10 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: json wait_for: - - "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['data'] ge 1514" + - "result[1]['interface-information'][0]['physical-interface'][0]['local-index'][0]['data'] ge 6" provider: "{{ netconf }}" register: result @@ -22,10 +22,10 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: json wait_for: - - "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['data'] >= 1514" + - "result[1]['interface-information'][0]['physical-interface'][0]['local-index'][0]['data'] >= 6" provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_json/lessthan.yaml b/test/integration/targets/junos_command/tests/netconf_json/lessthan.yaml index 68e634d063..292709b516 100644 --- a/test/integration/targets/junos_command/tests/netconf_json/lessthan.yaml +++ b/test/integration/targets/junos_command/tests/netconf_json/lessthan.yaml @@ -5,10 +5,10 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: json wait_for: - - "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['data'] lt 9000" + - "result[1]['interface-information'][0]['physical-interface'][0]['local-index'][0]['data'] lt 7" provider: "{{ netconf }}" register: result @@ -22,10 +22,10 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: json wait_for: - - "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['data'] lt 9000" + - "result[1]['interface-information'][0]['physical-interface'][0]['local-index'][0]['data'] lt 7" provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_json/lessthanorequal.yaml b/test/integration/targets/junos_command/tests/netconf_json/lessthanorequal.yaml index 1242bbf1f2..4a827bcdf7 100644 --- a/test/integration/targets/junos_command/tests/netconf_json/lessthanorequal.yaml +++ b/test/integration/targets/junos_command/tests/netconf_json/lessthanorequal.yaml @@ -5,10 +5,10 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: json wait_for: - - "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['data'] le 1514" + - "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['local-index'] le 6" provider: "{{ netconf }}" register: result @@ -22,10 +22,10 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: json wait_for: - - "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['data'] <= 1514" + - "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['local-index'] <= 6" provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_json/notequal.yaml b/test/integration/targets/junos_command/tests/netconf_json/notequal.yaml index b737b597c1..e09fc275cd 100644 --- a/test/integration/targets/junos_command/tests/netconf_json/notequal.yaml +++ b/test/integration/targets/junos_command/tests/netconf_json/notequal.yaml @@ -5,7 +5,7 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: json wait_for: - "result[0]['software-information'][0]['host-name'][0]['data'] neq localhost" @@ -22,7 +22,7 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: json wait_for: - "result[0]['software-information'][0]['host-name'][0]['data'] != localhost" diff --git a/test/integration/targets/junos_command/tests/netconf_text/bad_operator.yaml b/test/integration/targets/junos_command/tests/netconf_text/bad_operator.yaml index 91aac25edc..26c3e3fe77 100644 --- a/test/integration/targets/junos_command/tests/netconf_text/bad_operator.yaml +++ b/test/integration/targets/junos_command/tests/netconf_text/bad_operator.yaml @@ -5,9 +5,9 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 wait_for: - - "result[1].interface-information[0].physical-interface[0].name[0].data foo fxp0" + - "result[1].interface-information[0].physical-interface[0].name[0].data foo lo0" encoding: text provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_text/contains.yaml b/test/integration/targets/junos_command/tests/netconf_text/contains.yaml index 00745cbe2e..88dec402a8 100644 --- a/test/integration/targets/junos_command/tests/netconf_text/contains.yaml +++ b/test/integration/targets/junos_command/tests/netconf_text/contains.yaml @@ -5,11 +5,11 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 display: text wait_for: - "result[0] contains {{ inventory_hostname_short }}" - - "result[1] contains fxp0" + - "result[1] contains lo0" provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_xml/bad_operator.yaml b/test/integration/targets/junos_command/tests/netconf_xml/bad_operator.yaml index e8ca7c96d9..26ba7409a9 100644 --- a/test/integration/targets/junos_command/tests/netconf_xml/bad_operator.yaml +++ b/test/integration/targets/junos_command/tests/netconf_xml/bad_operator.yaml @@ -5,9 +5,9 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 wait_for: - - "result[1].rpc-reply.interface-information[0].physical-interface[0].name[0].data foo fxp0" + - "result[1].rpc-reply.interface-information[0].physical-interface[0].name[0].data foo lo0" format: xml provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_xml/greaterthan.yaml b/test/integration/targets/junos_command/tests/netconf_xml/greaterthan.yaml index 6e02dad288..e7bfb24036 100644 --- a/test/integration/targets/junos_command/tests/netconf_xml/greaterthan.yaml +++ b/test/integration/targets/junos_command/tests/netconf_xml/greaterthan.yaml @@ -5,10 +5,10 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: xml wait_for: - - "result[1].rpc-reply.interface-information.physical-interface.mtu gt 1500" + - "result[1].rpc-reply.interface-information.physical-interface.local-index gt 5" provider: "{{ netconf }}" register: result @@ -22,10 +22,10 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: xml wait_for: - - "result[1].rpc-reply.interface-information.physical-interface.mtu > 1500" + - "result[1].rpc-reply.interface-information.physical-interface.local-index > 5" provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_xml/greaterthanorequal.yaml b/test/integration/targets/junos_command/tests/netconf_xml/greaterthanorequal.yaml index 11e537c705..b3d7d6675b 100644 --- a/test/integration/targets/junos_command/tests/netconf_xml/greaterthanorequal.yaml +++ b/test/integration/targets/junos_command/tests/netconf_xml/greaterthanorequal.yaml @@ -5,10 +5,10 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: xml wait_for: - - "result[1].rpc-reply.interface-information.physical-interface.mtu ge 1514" + - "result[1].rpc-reply.interface-information.physical-interface.local-index ge 6" provider: "{{ netconf }}" register: result @@ -22,10 +22,10 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: xml wait_for: - - "result[1].rpc-reply.interface-information.physical-interface.mtu >= 1514" + - "result[1].rpc-reply.interface-information.physical-interface.local-index >= 6" provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_xml/lessthan.yaml b/test/integration/targets/junos_command/tests/netconf_xml/lessthan.yaml index beea3882ff..bab8333808 100644 --- a/test/integration/targets/junos_command/tests/netconf_xml/lessthan.yaml +++ b/test/integration/targets/junos_command/tests/netconf_xml/lessthan.yaml @@ -5,10 +5,10 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: xml wait_for: - - "result[1].rpc-reply.interface-information.physical-interface.mtu lt 9000" + - "result[1].rpc-reply.interface-information.physical-interface.local-index lt 7" provider: "{{ netconf }}" register: result @@ -22,10 +22,10 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: xml wait_for: - - "result[1].rpc-reply.interface-information.physical-interface.mtu lt 9000" + - "result[1].rpc-reply.interface-information.physical-interface.mtu lt 7" provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_xml/lessthanorequal.yaml b/test/integration/targets/junos_command/tests/netconf_xml/lessthanorequal.yaml index 973f59203e..164eb3cf17 100644 --- a/test/integration/targets/junos_command/tests/netconf_xml/lessthanorequal.yaml +++ b/test/integration/targets/junos_command/tests/netconf_xml/lessthanorequal.yaml @@ -5,10 +5,10 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: xml wait_for: - - "result[1].rpc-reply.interface-information.physical-interface.mtu le 1514" + - "result[1].rpc-reply.interface-information.physical-interface.local-index le 6" provider: "{{ netconf }}" register: result @@ -22,10 +22,10 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: xml wait_for: - - "result[1].rpc-reply.interface-information.physical-interface.mtu <= 1514" + - "result[1].rpc-reply.interface-information.physical-interface.local-index <= 6" provider: "{{ netconf }}" register: result