Fix junos integration failures (#34571)

*  Add connection=netconf in individual roles for modules that run using netconf connection
plugin
*  Add connection=network_cli for junos_netconf and junos_command
at applicable places
This commit is contained in:
Ganesh Nalawade 2018-01-08 17:58:47 +05:30 committed by GitHub
parent 5e6b2495c0
commit 1c8c51d05c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 276 additions and 123 deletions

View file

@ -1,5 +1,5 @@
---
- debug: msg="START netconf_text/bad_operator.yaml"
- debug: msg="START netconf_text/bad_operator.yaml on connection={{ ansible_connection }}"
- name: test bad operator with text encoding
junos_command:
@ -18,4 +18,4 @@
- "result.failed == true"
- "result.msg is defined"
- debug: msg="END netconf_text/bad_operator.yaml"
- debug: msg="END netconf_text/bad_operator.yaml on connection={{ ansible_connection }}"

View file

@ -1,5 +1,5 @@
---
- debug: msg="START netconf_text/contains.yaml"
- debug: msg="START netconf_text/contains.yaml on connection={{ ansible_connection }}"
- name: test contains operator with text encoding
junos_command:
@ -18,4 +18,4 @@
- "result.stdout is defined"
- "result.stdout_lines is defined"
- debug: msg="END netconf_text/contains.yaml"
- debug: msg="END netconf_text/contains.yaml on connection={{ ansible_connection }}"

View file

@ -1,5 +1,5 @@
---
- debug: msg="START netconf_text/invalid.yaml"
- debug: msg="START netconf_text/invalid.yaml on connection={{ ansible_connection }}"
- name: run invalid command
junos_command:
@ -31,4 +31,4 @@
- "result.failed == true"
- "result.msg is defined"
- debug: msg="END netconf_text/invalid.yaml"
- debug: msg="END netconf_text/invalid.yaml on connection={{ ansible_connection }}"

View file

@ -1,5 +1,5 @@
---
- debug: msg="START netconf_text/output.yaml"
- debug: msg="START netconf_text/output.yaml on connection={{ ansible_connection }}"
- name: get output for single command
junos_command:
@ -59,4 +59,4 @@
- "result.stdout is defined"
- "result.stdout_lines is defined"
- debug: msg="END netconf_text/output.yaml"
- debug: msg="END netconf_text/output.yaml on connection={{ ansible_connection }}"

View file

@ -1,5 +1,5 @@
---
- debug: msg="START netconf_text/timeout.yaml"
- debug: msg="START netconf_text/timeout.yaml on connection={{ ansible_connection }}"
- name: test bad condition
junos_command:
@ -17,4 +17,4 @@
- "result.failed == true"
- "result.msg is defined"
- debug: msg="END netconf_text/timeout.yaml"
- debug: msg="END netconf_text/timeout.yaml on connection={{ ansible_connection }}"