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

Fixes #31056 - nxos_portchannel idempotence failure on N1 images #31057

Merged
merged 1 commit into from
Oct 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/ansible/modules/network/nxos/nxos_portchannel.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ def get_portchannel(module, netcfg=None):
for pc in pc_table:
if pc['group'] == module.params['group']:
portchannel_table = pc
elif module.params['group'].isdigit() and pc['group'] == int(module.params['group']):
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you test this change against all nxos platforms? Just want to make sure since this area has been historically prone to idempotence issues that were fixed in 2.4.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mikewiebe ... I've tested our matrix and it passed the tests. I will rerun and confirm.

Copy link
Member

Choose a reason for hiding this comment

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

@rahushen Did you retest this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mikewiebe @trishnaguha Yes, retested and it passed the tests.

portchannel_table = pc
except (KeyError, AttributeError, TypeError, IndexError):
return {}

Expand Down