Python Jinja Network Automation - Cisco Configs

  Рет қаралды 4,399

Python 360

Python 360

Күн бұрын

Пікірлер
@davidleiro9993
@davidleiro9993 Жыл бұрын
Thank you so much! My first day working with jinja and I have my own template!
@python360
@python360 Жыл бұрын
Excellent, glad it helped you, and thanks for your nice feedback. Cheers David!
@NetworkNinja111
@NetworkNinja111 Жыл бұрын
Got my sub off this video. Appreciate the simple breakdown!!
@python360
@python360 Жыл бұрын
Thanks NN glad you liked 👍🙂
@YZIOHP
@YZIOHP 2 жыл бұрын
Thank you so much! I've been looking for an example like this and you hit it on the head!
@python360
@python360 2 жыл бұрын
No problem, very pleased it helped! 👍👍👍
@YZIOHP
@YZIOHP 2 жыл бұрын
Is there any capability to capture our variables for our Jinja2 template via an HTML form instead of a csv or yaml file and output that to the html page?
@python360
@python360 2 жыл бұрын
Yes, you could use Flask to do exactly that, or FastAPI if you wanted.
@rajradia6367
@rajradia6367 2 жыл бұрын
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?
@python360
@python360 2 жыл бұрын
Ah yes, i see what you're saying, you could build a CSV with same format as per this video, but with a new "column" after column 1. With the python code : after line 21 in my code, you could have G002 = row[2] on line 22 (and then current line of code, line 22, moves down a line! and makes use of row[3]). In the cases where G002 is not present, you could simply have a blank space between the commas in your CSV file. (Make sure you still have the same number of commas on each line though).
@python360
@python360 2 жыл бұрын
(ps. If I was to redo it, I might also look to use a python dictionary, and then the key:values would be better than relying on having the correct column numbers).
@thescientisthorse
@thescientisthorse Жыл бұрын
The thumbnail got me here.
@VRivai
@VRivai 2 жыл бұрын
Thanks a lot! This video helps me a lot.
@python360
@python360 2 жыл бұрын
Glad to hear it was helpful. Thanks for the kind comment 👍
@yc674
@yc674 2 жыл бұрын
Why are you wearing sunglasses?
@python360
@python360 2 жыл бұрын
Cos privacy!
Python and Jinja2 Cisco Network Automation
54:21
David Bombal
Рет қаралды 33 М.
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 81 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 179 МЛН
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 10 МЛН
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 21 МЛН
Automated Testing with pyATS
31:05
Cisco U. by Learning & Certifications
Рет қаралды 7 М.
Ansible Jinja2 template explained - Part-11
11:44
Rahul Wagh
Рет қаралды 7 М.
Automation Using Python | SSH to Cisco Device
21:37
My IT Workshop
Рет қаралды 36 М.
I Rode In The Driverless Robotaxi Zoox
13:41
Supercar Blondie
Рет қаралды 615 М.
Как работает библиотека Jinja2 | Робот для анализа госконтрактов
5:20
Мастерская Важных историй
Рет қаралды 3,5 М.
Jinja2 Tutorial: Streamline Network Configurations with Python-Based Templating | Snack Minute 95
13:41
Cisco U. by Learning & Certifications
Рет қаралды 3,9 М.
get started with Ansible Network Automation (FREE cisco router lab)
15:02
Python For Network Engineers - 1hr crash course
59:15
Networks Learning
Рет қаралды 18 М.
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 81 МЛН