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

Prefix/VLAN create optimization #150

Merged
merged 2 commits into from
Apr 11, 2022
Merged

Prefix/VLAN create optimization #150

merged 2 commits into from
Apr 11, 2022

Conversation

arjenvri
Copy link
Contributor

@arjenvri arjenvri commented Apr 9, 2022

Currently each prefix and vlan create resource performs a create, update and read API call
This change improves performance with creating many vlans/prefixes by removing the unneeded update call.

@arjenvri arjenvri changed the title Prefix create optimization Prefix/VLAN create optimization Apr 9, 2022
@fbreckle
Copy link
Collaborator

This is actually a pattern I tried. The idea was to just set the required attributes in the create func, and then always call the update func. It reduces duplicate code, but I agree that minimizing API calls is better.

@fbreckle fbreckle merged commit 6a63f15 into e-breuninger:master Apr 11, 2022
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.

None yet

2 participants