-
Notifications
You must be signed in to change notification settings - Fork 174
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
BGP AF Parsing Optimization #688
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Hey @bentole looking at your fix it would make it overly complicated on basis of the parsing that is being done. |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 56s |
Sounds good! Didnt see your comment at first so wrote you a reply here 😃 |
Forgot to comment on this :) It appears complicated since I'm overriding functions from NetworkTemplate and that requires a copy of the complete method, but the only lines really added are:
But again a solution that does not involve overriding methods is definately preferable. |
The issue that this PR addressed is covered by and fixed more extensively in PR #687 |
SUMMARY
This is a supplement to PR #687 by optimizing parsing of existing Jinja2 templates.
It improves the time it takes to deploy playbooks to routers with massive BGP configurations as discussed in #682 avoiding
socket path /home/bol/.ansible/pc/9857e85642 does not exist or cannot be found
ISSUE TYPE
COMPONENT NAME
cisco.ios.ios_address_family
ADDITIONAL INFORMATION
To verify the effects of this PR, use the playbook and the configuration mentioned: here.
I have also created a test case for this issue here which demonstrates the differences between the optimized vs. original parsers.