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

Fix(eos_designs): Avoid in-place updates of network services impacting PyAVD #3544

Conversation

ClausHolbechArista
Copy link
Contributor

@ClausHolbechArista ClausHolbechArista commented Jan 25, 2024

Change Summary

Avoid in-place updates of network services impacting PyAVD.

When running PyAVD with multi-threading the parallel processes in-place updated the network services data, causing some threads to get incomplete data.

This change shallow copies the data structured to avoid affecting other devices.

I have not seen any performance impact in my tests, but I would expect a slight penalty.

Also tested by @emilarista who found the issue using PyAVD and Nornir.

Checklist

User Checklist

  • N/A

Repository Checklist

  • My code has been rebased from devel before I start
  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation and documentation have been updated accordingly.
  • I have updated molecule CI testing accordingly. (check the box if not applicable)

@github-actions github-actions bot added the role: eos_designs issue related to eos_designs role label Jan 25, 2024
Copy link
Contributor

@gmuloc gmuloc left a comment

Choose a reason for hiding this comment

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

LGTM - will conflict with #3467

Copy link
Contributor

@emilarista emilarista left a comment

Choose a reason for hiding this comment

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

Tested, LGTM!

@ClausHolbechArista ClausHolbechArista merged commit 9bccf33 into aristanetworks:devel Jan 26, 2024
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn: Fix(eos_designs) role: eos_designs issue related to eos_designs role
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants