Skip to content
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

Merged
merged 8 commits into from
Mar 14, 2023
Merged

Support for all network and vrf configs #208

merged 8 commits into from
Mar 14, 2023

Conversation

praveenramoorthy
Copy link
Collaborator

Added support for all network and vrf configs

Fix for issue in #185 and #197

@mikewiebe
Copy link
Collaborator

@praveenramoorthy This issue was raised #207. I am wondering if the updates in this PR prevent this from happening. Can you verify?

plugins/modules/dcnm_network.py Show resolved Hide resolved
plugins/modules/dcnm_network.py Show resolved Hide resolved
plugins/modules/dcnm_vrf.py Outdated Show resolved Hide resolved
plugins/modules/dcnm_network.py Show resolved Hide resolved
@@ -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
Copy link
Collaborator

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:

https://github.com/CiscoDevNet/ansible-dcnm/blob/develop/tests/integration/targets/dcnm_network/tests/dcnm/self-contained-tests/sm_mcast_params.yaml#L32

Copy link
Collaborator

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes done as suggested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants