1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add delay in junos integration test after netconf is enabled (#33899)

junos integration test fails intermittently after task enables netconf
 on the remote host and the second task tries to create a persistent
 connection. Add a delay after the first task to ensure netconf is up
 running on remote host.
This commit is contained in:
Ganesh Nalawade 2017-12-14 13:48:09 +05:30 committed by GitHub
parent 6f77a32b13
commit 53abf45cec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View file

@ -7,7 +7,6 @@
state: present state: present
register: result register: result
################################### ###################################
- name: Change port - name: Change port
junos_netconf: junos_netconf:
@ -29,6 +28,10 @@
that: that:
- "result.changed == false" - "result.changed == false"
- name: wait for netconf server to come up
pause:
seconds: 10
- name: Ensure we can communicate over 8022 - name: Ensure we can communicate over 8022
junos_command: junos_command:
rpcs: rpcs:

View file

@ -18,6 +18,10 @@
################################### ###################################
- name: wait for netconf server to come up
pause:
seconds: 10
- name: Ensure we can communicate over netconf - name: Ensure we can communicate over netconf
junos_command: junos_command:
rpcs: get-software-information rpcs: get-software-information

View file

@ -7,3 +7,7 @@
- name: Ensure netconf is enabled - name: Ensure netconf is enabled
junos_netconf: junos_netconf:
state: present state: present
- name: wait for netconf server to come up
pause:
seconds: 10