-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for all network and vrf configs #208
Conversation
@praveenramoorthy This issue was raised #207. I am wondering if the updates in this PR prevent this from happening. Can you verify? |
@@ -65,6 +65,10 @@ | |||
- '"{{ ansible_switch2 }}" in result.diff[0].attach[1].ip_address' | |||
- 'result.diff[0].vrf_name == "ansible-vrf-int1"' | |||
|
|||
- name: MERGED - sleep for 40 seconds for DCNM to completely update the state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and elsewhere, let's try and avoid arbitrary sleep statements like this and instead use the following approach:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to check for a specific condition and loop until that condition is reached instead of hoping 40 seconds is long enough. Also if we reach the state sooner then we move to the next task more quickly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes done as suggested
Added support for all network and vrf configs
Fix for issue in #185 and #197