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
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/changeport.yaml"
- debug: msg="START netconf/changeport.yaml on connection={{ ansible_connection }}"
- name: Setup
@ -38,6 +38,7 @@
- get-software-information
provider: "{{ netconf }}"
port: 8022
connection: netconf
- name: wait for persistent socket to timeout
pause:
@ -49,6 +50,7 @@
rpcs: get-software-information
provider: "{{ netconf }}"
register: result
connection: netconf
ignore_errors: true
- assert:
@ -69,5 +71,6 @@
rpcs:
- get-software-information
provider: "{{ netconf }}"
connection: netconf
- debug: msg="END netconf/changeport.yaml"
- debug: msg="END netconf/changeport.yaml on connection={{ ansible_connection }}"

View file

@ -1,5 +1,5 @@
---
- debug: msg="START netconf/netconf.yaml"
- debug: msg="START netconf/netconf.yaml on connection={{ ansible_connection }}"
- name: Ensure netconf is enabled
@ -26,6 +26,7 @@
junos_command:
rpcs: get-software-information
provider: "{{ netconf }}"
connection: netconf
# Disable netconf
@ -56,6 +57,7 @@
rpcs: get-software-information
provider: "{{ netconf }}"
register: result
connection: netconf
ignore_errors: true
- assert:
@ -68,4 +70,4 @@
register: result
- debug: msg="END netconf/netconfg.yaml"
- debug: msg="END netconf/netconfg.yaml on connection={{ ansible_connection }}"