No video

Nornir (Python Network Automation) | Pushing Configs via Textfiles!

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

IPvZero

IPvZero

Күн бұрын

Пікірлер: 22
@IPvZero
@IPvZero 4 жыл бұрын
Links to my new Network Automation training at CBT Nuggets: ---------------------------------------------------------------------------------------------- UNDERSTAND THE NORNIR AUTOMATION FRAMEWORK ---------------------------------------------------------------------------------------------- www.cbtnuggets.com/it-training/understanding-nornir-automation-framework? ---------------------------------------------------------------------------------------------- AUTOMATE NETWORK CONFIGURATIONS WITH NORNIR ---------------------------------------------------------------------------------------------- www.cbtnuggets.com/it-training/automate-network-configuration-nornir? --------------------------------------------------------------------------------------------- UNDERSTAND AUTOMATION SECURITY --------------------------------------------------------------------------------------------- www.cbtnuggets.com/it-training/understand-automation-security?
@IPvZero
@IPvZero 4 жыл бұрын
TIMESTAMPS: 2:00 - What is the config.yaml file? 2:50 - First look at the groups.yaml file 3:05 - What is the hosts.yaml file? 3:50 - How to auto-generate your own hosts.yaml file 4:55 - The Runbook script explained 10:25 - First look at the Textfile 11:10 - The script is deployed! 12:20 - Creating a new textfile with new configs 13:25 - The Runbook is redeployed with the new changes 14:00 - How to edit the script 15:20 - The new script is run one final time! (NOTE: I keep calling the config_textfile "config dot textfile". This is of course an error haha. That was the original name of the file when I first created the demo, but decided to change it to an underscore)
@menukawijayarathne886
@menukawijayarathne886 3 жыл бұрын
Excellent content!keep it up John!
@IPvZero
@IPvZero 3 жыл бұрын
Thanks, Menuka :)
@David70154
@David70154 2 жыл бұрын
Hi. Thanks for the video. How can we capture exceptions? Incase of failed tasks. I will like to capture exceptions and put them into a txt file
@JeDeXxRioProKing
@JeDeXxRioProKing 4 жыл бұрын
i like before watching i'know all your video have goood content
@IPvZero
@IPvZero 4 жыл бұрын
Hahaha! Thanks, Sefraoui! Glad to have your support! -John
@ManojKumar-1985
@ManojKumar-1985 4 жыл бұрын
Edinburgh accent? Informative video
@IPvZero
@IPvZero 4 жыл бұрын
Hahaha thanks Manoj! You're very close, Glasgow! :) -John
@jethroclitar3693
@jethroclitar3693 4 жыл бұрын
Hi, just wondering if you are releasing a video with enable on cisco devices password protected. I am having trouble with dynamically assigning the enable secret for netmiko. If I add it on the yaml file it works but requesting is using nr.inventory.defaults.connection_options['netmiko'] = ConnectionOptions(extras={"secret":pwd}) is not working where pwd = getpass()
@besalmon3517
@besalmon3517 4 жыл бұрын
Hi John, Quick question.. the section at 4.21 where we can edit the ip address, can we reference that section to another txt file where we have some specific IP addresses from different subnets?
@IPvZero
@IPvZero 4 жыл бұрын
Hey, Besal. If I'm understanding your question correctly. Yeah, that would be possible but it would require a change to the script :) I'm just thinking off the top of my head but you'd need to do something like: with open('ip.txt') as f: ip_list = f.read().splitlines() for ip in ip_list: And basically reference the object 'ip' as your ip address in your script as the hostname. Although I will add that I would highly recommend use Out Of Band management like I do in my videos (the red links). They're all effectively in the same subnet and provide easy and stable reachability. In my example all the g0/0 interfaces in the routers are in their own VRF (virtual routing table) so that the network has no effect on actual production traffic. If you're trying to manage your network over your actual production network and crossing over different subnets, etc. Then changes that you make to your network might impact your ability to have reachability and thus manage it. For example, if you automate out an OSPF changes that breaks an adjacency, you might not be able to reach a large part of your network, etc. Just a suggestion, keeps things really easy, especially for generating your host.yaml files :) -John
@besalmon3517
@besalmon3517 4 жыл бұрын
@@IPvZero You are a star... !! Keep up the good work matey :) God bless +
@IPvZero
@IPvZero 4 жыл бұрын
@@besalmon3517 Thanks, Besal. Glad to help. Speak soon :) -John
@linkflap1342
@linkflap1342 4 жыл бұрын
Why do you use eve-NG and not gns3. Is it better in any way or just preferences? I never tried eve. Eve GUI looks nicer.
@IPvZero
@IPvZero 4 жыл бұрын
Hey, Fototranzystor! Both EVE-NG and GNS3 are great pieces of software. Mostly I prefer the look of EVE-NG. I particularly like the clean interface labels which I think makes it easier for viewers to follow along when I'm making configuration changes. However, EVE-PRO has some really nice features like reducing link quality on a line which is great for testing IP SLA/QoS, etc. I could be wrong but I don't think GNS3 has such a feature. But, yes! It's largely due to personal preference. Both are absolutely fine to use. :) -John
@muhammad.rafi2012
@muhammad.rafi2012 4 жыл бұрын
nice tutorial but you could have put the username/password in default.yaml, to make this host file clean and avoid typing credentials for 1000 devices
@IPvZero
@IPvZero 4 жыл бұрын
Thanks, Muhammad! And you're 100% right, that's how I have it setup in my personal labs! I made the decision to remove my defaults file for the video in order for what I thought was maximum simplification since we're still in the early stages on these demos. I could be wrong, but I thought it would be easier for total beginners to follow by using the least amount of cross-referencing/inheritance as possible. So I just added the username and password values to my python script when I auto-generated this particular host file for the demonstration. Thanks again and great to have your feedback :) -John
@besalmon3517
@besalmon3517 4 жыл бұрын
@@IPvZero You are right John...!! your videos are simple and easier for total beginners :)
@IPvZero
@IPvZero 4 жыл бұрын
@@besalmon3517 Thank you, Besal! :) -John
@muhammad.rafi2012
@muhammad.rafi2012 4 жыл бұрын
@@IPvZero thanks mate, can you please make a video using the ansible inventory file? rather than simple inventory, just requesting
@IPvZero
@IPvZero 4 жыл бұрын
@@muhammad.rafi2012 Hey, Muhammad. Yup, I actually have plans to do a video on the inventories and inheritance since they are so important, but I reckon also covering the Ansible inventory plugin would probably be a good addition to the video. Thanks for the suggestion! :) -John
Nornir (Python Network Automation) | Simple Filtering!
20:02
IPvZero
Рет қаралды 1,9 М.
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 43 МЛН
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 42 МЛН
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 49 МЛН
Pushing Lab Config Files with Nornir
10:20
Michael O'Brien's CCIE Journey
Рет қаралды 629
Nornir vs Ansible: Which Automation Tool Is Better?
6:31
CBT Nuggets
Рет қаралды 8 М.
Introduction to Nornir | Python Network Automation!
19:45
IPvZero
Рет қаралды 14 М.
Scrapli CFG - Network Automation
21:05
IPvZero
Рет қаралды 3 М.
Introduction to Genie | Python Network Automation!
25:41
IPvZero
Рет қаралды 7 М.
How To Setup A Network Automation Environment!
16:35
IPvZero
Рет қаралды 6 М.
Parse Cisco IOS to JSON with Python and Netmiko
17:15
Data Knox
Рет қаралды 21 М.
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 43 МЛН