mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 12:03:58 -07:00
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:
parent
5e6b2495c0
commit
1c8c51d05c
69 changed files with 276 additions and 123 deletions
|
@ -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 }}"
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue