Python Jinja Network Automation - Cisco Configs
Dr Pi
Network Automation using Python and Jinja. Jinja templates are a fast, repeatable way to render documents based on your own original template. The code in this example shows you how to create Cisco router configs from a script reading values from a CSV file.
"Jinja is a fast, expressive, extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax."
š https://pypi.org/project/Jinja2/
= Chapter timings =
ā 0:00 Intro ā 4:34 Code ā 7:20 Read values from CSV ā 15:04 Test the code ā 18:00 Output to text file
Network Automation Playlist: š https://www.youtube.com/playlist?list=PLKMY3XNPiQ7vhVEvu6-ryv85tEb4gFvcI
Visit redandgreen blog for more Tutorials
š http://redandgreen.co.uk/about/blog/
Subscribe to the YouTube Channel
š https://www.youtube.com/c/DrPiCode
Follow on Twitter - to get notified of new videos
š https://twitter.com/RngWeb
š Become a patron š š https://www.patreon.com/drpi
š Buy Dr Pi a coffee (or Tea) š ā ā ā https://www.buymeacoffee.com/DrPi ā ā ā
Proxies
If you need a good, easy to use proxy, I was recommended this one, and having used ScraperAPI for a while I can vouch for them. If you were going to sign up anyway, then maybe you would be kind enough to use the link and the coupon code below?
You can also do a full working trial first as well, (unlike some other companies). The trial doesn't ask for any payment details either so all good! š
š 10% off ScraperAPI : https://www.scraperapi.com?fpr=ken49 ā¼ļø ā¼ļø Coupon Code: DRPI10 ā¼ļø (You can also get started with 1000 free API calls. No credit card required.)
Thumbs up yeah? (cos Algos..)
#Jinja #networkautomation #python ... https://www.youtube.com/watch?v=FkQoPQuGMxw
110069383 Bytes