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:
parent
6f77a32b13
commit
53abf45cec
3 changed files with 12 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -7,3 +7,7 @@
|
|||
- name: Ensure netconf is enabled
|
||||
junos_netconf:
|
||||
state: present
|
||||
|
||||
- name: wait for netconf server to come up
|
||||
pause:
|
||||
seconds: 10
|
||||
|
|
Loading…
Reference in a new issue