Python Jinja Network Automation - Cisco Configs

preview_player
Показать описание
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."

= 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:

Visit redandgreen blog for more Tutorials
=========================================

Subscribe to the YouTube Channel
=================================

Follow on Twitter - to get notified of new videos
=================================================

👍 Become a patron 👍

😊 Buy Dr Pi a coffee (or Tea) 😊

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! 👍

◼️
◼️ Coupon Code: DRPI10
◼️
(You can also get started with 1000 free API calls. No credit card required.)

Thumbs up yeah? (cos Algos..)

#Jinja #ccnp #python
Рекомендации по теме
Комментарии
Автор

Thank you so much! My first day working with jinja and I have my own template!

davidleiro
Автор

Got my sub off this video. Appreciate the simple breakdown!!

NetworkNinja
Автор

Thank you so much! I've been looking for an example like this and you hit it on the head!

YZIOHP
Автор

Thanks a lot! This video helps me a lot.

VRivai
Автор

Hi, great video. I was wondering, if you have a list of routers some with multiple interfaces say 2x gig interfaces and some with 1 X gig interface. So in the template you would have 2 interfaces. How does the template handle the config for routers with 1 X gig interface?

rajradia