Тёмный

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

IPvZero
Подписаться 10 тыс.
Просмотров 4,3 тыс.
50% 1

Опубликовано:

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@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?
@rinsatomi9527
@rinsatomi9527 10 дней назад
Love your accent mate, instant subscribe! Cheers
@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
Introduction to Nornir | Python Network Automation!
19:45
Parse Cisco IOS to JSON with Python and Netmiko
17:15
Introduction to Genie | Python Network Automation!
25:41
Ansible for Network Configuration Templates
21:02
Просмотров 59 тыс.
Python and Jinja2 Cisco Network Automation
54:21
Просмотров 32 тыс.
Python Network Automation | Netmiko!
20:38
Просмотров 5 тыс.
Network Automation: Desired State!
13:08
Просмотров 1,3 тыс.
Scrapli CFG - Network Automation
21:05
Просмотров 3 тыс.