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
register: result
###################################
- name: Change port
junos_netconf:
@ -29,6 +28,10 @@
that:
- "result.changed == false"
- name: wait for netconf server to come up
pause:
seconds: 10
- name: Ensure we can communicate over 8022
junos_command:
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
junos_command:
rpcs: get-software-information

View file

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