Why is Python better than Ansible? What is Nornir? Is AI important? Dmitry shares his views!

  Рет қаралды 16,074

David Bombal

David Bombal

Күн бұрын

Dmitry tells us why he believes Python and Nornir are better than Ansible. He explains what Nornir is and how he became part of the core developer team of Nornir.
Menu:
Live Stream on Twitch: 0:32
Dimitry's programming background and how he got into Cisco: 1:00
Are you a Networker or Programmer: 6:32
Nornir: 8:25
Why is Python better than Ansible? 11:16
Why is Nornir better (threading and other options)? 16:25
Is Normir a Python version of Ansible? 22:27
Can someone start with Nornir? 22:47
Just get started: 28:28
Are certifications important? 30:18
Reasons to get certs: 32:40
Would you still go for CCNA, CCNP, CCIE today? 34:08
What is machine learning and AI? 36:50
Dmitry's details:
Twitter: / dmfigol
Twitch: / dmfigol
LinkedIn: / dmfigol
KZfaq: / @dmfigol_live_archive
Nornir:
nornir.readthedocs.io/en/stable/
Netmiko:
github.com/ktbyers/netmiko
NAPALM:
github.com/napalm-automation/...
Pyats:
developer.cisco.com/pyats/
Network to Code slack group:
slack.networktocode.com/
#Python #Ansible #Nornir
Note: Travel and conference access courtesy of Cisco.

Пікірлер: 59
@dmfigol_live_archive
@dmfigol_live_archive 5 жыл бұрын
David, thank you so much for having me! It was great meeting you for the first time and talking to you! I am looking forward to our next meeting (hopefully at CLUS!)
@nectar200
@nectar200 5 жыл бұрын
Great interview bro
@davidbombal
@davidbombal 5 жыл бұрын
It was fantastic meeting you and talking with you Dmitry! Thank you for sharing your knowledge with us all.
@ristoshikongo7730
@ristoshikongo7730 2 жыл бұрын
I've noticed your english and accent doesn't have to be as good as a native english speaker, because when you master your craft. It really puts your English on top of the world. It was my bigest concern especially if I have to apply for a job. Thanks Dmitry for reminding me once more and great interview David.
@eltreum1
@eltreum1 4 жыл бұрын
We use Netmiko a lot in service provider land and is the only way to work in scale when you learn to multithread or turn you simple script into a worker microservice that can instantly scale to thousands for really big jobs. I have been looking at Nornir and it's nice that it affords multitasking to a new programmer without having to manage it. We already wrote our own multi processing and scaling solutions to employ Netmiko among other libs and they live in a datacenter behind an API service. The way Python threads share the parent process fits fairly well with the asynchronous nature of network device interaction. Pythons dreaded GIL is not as much of barrier in this specific use case unless you crank up the worker threads too high and/or they are too I/O heavy. Using multiprocessing can multiply your thread use further by essentially running the same script module multiple times in their own separate processor cores and interpreter instance to split the work but is a little harder to build and manage. You have to plan and break up the structure of your modules more carefully to fit that work style to get the best performance. I encourage new programmers to learn to multithread Netmiko as soon as they master doing simple tasks because it's the easiest to understand and implement. You will learn a lot and have a powerful tool at your disposal when you are done. Ansible is cool but it is not always the best tool for the job but is good to know because its popular. YAML is a great config language but when you start mixing programming logic into your business info it can become an ugly mess to maintain/test and is only so flexible. CSVs and spreadsheets make great quick disposable job controls and data sources but are best for human data exchange then digested into a system. Whatever you use make sure to get version control like Git. Netdevs should eventually learn at least the basics of using a database as their storage/data source because that's what SDN config orchestrators really are; databases with worker programs that act on that data wrapped in an API. A DB connection works like Netmikos connection handler and just as simple to learn. Python comes with SQLite3 built-in and is a portable single file database so you don't need a server or VM/emulation to use. You will learn the basics of SQL query languages and how to make you own simple databases to power your dream app. Using a real DB is a trivial step after that and allows you to do datacenter scale jobs like auditing 10K routers in 10 minutes. You can mine that data at will to generate reports for audits or learn insights about your network. DBs make a great I/O device for automation work because of its asynchronous behavior like network devices so it plays nicer with threading and can handle scale built in unless you use Oracle then you are doomed to fail because they ruin everything they touch.
@davidbombal
@davidbombal 4 жыл бұрын
Fantastic, real world example! Thank you for sharing :)
@rakeshn5070
@rakeshn5070 5 жыл бұрын
This was a very good interview. Dmitry knows so much, it's difficult to get everything in one interview. Again python scripting is shown importance in network automation. It's fabulous to meet all networking gurus through your videos David. Thanks to you.
@jamalkhan815
@jamalkhan815 5 жыл бұрын
Thank you, Sir, for another great meetup!!!
@andrewohanian5132
@andrewohanian5132 3 жыл бұрын
Wow, what an amazing interview. Dmitry is incredibly sharp, easy to understand, and inspiring all at the same time!
@nomoreospf
@nomoreospf 3 жыл бұрын
Very well done, thank you. The video description also is quite perfect!
@kgomado
@kgomado 5 жыл бұрын
Dimitry, you're a smart guy! This everchanging world needs more people like you to meet chanllenges!
@theLANTamer
@theLANTamer 5 жыл бұрын
David thank you for interviewing one of our industry's mentors and a trail-blazer, Dmitry! You're an excellent interviewer, and the questions asked of Dmitry are questions many of us are asking ourselves and considering the implications of. This is an excellent, propitious video!
@davidbombal
@davidbombal 5 жыл бұрын
Thank you! Dmitry is amazing! Hope you are well?
@davidbombal
@davidbombal 5 жыл бұрын
Menu: Live Stream on Twitch: 0:32 Dimitry's programming background and how he got into Cisco: 1:00 Are you a Networker or Programmer: 6:32 Nornir: 8:25 Why is Python better than Ansible? 11:16 Why is Nornir better (threading and other options)? 16:25 Is Nornir a Python version of Ansible? 22:27 Can someone start with Nornir? 22:47 Just get started: 28:28 Are certifications important? 30:18 Reasons to get certs: 32:40 Would you still go for CCNA, CCNP, CCIE today? 34:08 What is machine learning and AI? 36:50 Dmitry's details: Twitter: twitter.com/dmfigol Twitch: www.twitch.tv/dmfigol LinkedIn: www.linkedin.com/in/dmfigol/ KZfaq: kzfaq.info/love/S8yWZCX-fdxft8yFAffZCg Nornir: nornir.readthedocs.io/en/stable/ Netmiko: github.com/ktbyers/netmiko NAPALM: github.com/napalm-automation/... Pyats: developer.cisco.com/pyats/ Network to Code slack group: slack.networktocode.com/ Note: Travel and conference access courtesy of Cisco.
@Mongoosemcqueen
@Mongoosemcqueen 5 жыл бұрын
Thanks for the timestamps, excellent interview
@TrcRat97
@TrcRat97 5 жыл бұрын
really great to see someone so obviously highly intelligent yet also grounded and humble. Great interview
@KRICHAN_Technologies
@KRICHAN_Technologies 5 жыл бұрын
Hi David.. we never see people like you for getting of best in everything with the free cost channel in this commercial world. You are giving best to us with free cost & always thankful for lot of your hard work. Thank you so much.
@BloodyMer
@BloodyMer 5 жыл бұрын
great interview, great topics. Thank you guys! You´ve just said all I think about ansible and all the pain I feel when I have to make hard stuff (and debugging it...)
@lindigo263
@lindigo263 5 жыл бұрын
Very good interview, Dimitry is very good I attended one of his presentations last year at CLUS on net dev and Asyncio I used his recommendations for logging into 200 routers in 30-45 minutes to 2-3 minutes which turn help we auto close and auto fix of devices will definitely look into the nornir!!!
@dmfigol_live_archive
@dmfigol_live_archive 5 жыл бұрын
Wow, that's so cool! I can't express how glad I am to hear that such a niche session about Python asyncio made a difference for your network automation tasks.
@mileycoco9772
@mileycoco9772 5 жыл бұрын
Hello David, I'm not sure if you will this message but I just want to say it! * - You have chosen NOT to monetize your KZfaq channel. For this I respect you a lot. Ads are the reason why I have unfollowed guy with big beard and will never ever touch his videos. Is he despred to earn money from KZfaq while feeding his audience with 3-4 advertisments per video? It is really annoyng to learn something while ads interupt my concentration. * - Thank you for choosing NOT monetize your KZfaq channel! I'm just one of the many students who appreciate your decision to NOT feeding us with KZfaq ads, but rather with value content. * - I have BIG respect for you!!! Thank you Dave!
@Ruchikun
@Ruchikun 3 жыл бұрын
LOL "guy with big beard"... we all know who :p
@alenorasje
@alenorasje 5 жыл бұрын
Thank you David for delivering great educational and inspirational materials!
@davidcarrasco
@davidcarrasco 5 жыл бұрын
I’m taking Kirk Byers classes right now, and information like this is incredibly helpful. A perspective from someone who has professional experience using Python, Nornir, Ansible
@nycalien
@nycalien 2 жыл бұрын
How was that class? I was thinking taking it too but needed a review.
@davidcarrasco
@davidcarrasco 2 жыл бұрын
The class was Invaluable to my career and growth. I can’t recommend it enough.
@nycalien
@nycalien 2 жыл бұрын
@@davidcarrasco Thank you. I'm also going to take it. Thank you.
@davidcarrasco
@davidcarrasco 2 жыл бұрын
@@nycalien let me know how it goes. I’d be super curious
@ankurarora1606
@ankurarora1606 5 жыл бұрын
Hi David, Love your work 💓
@Mabrouk22D
@Mabrouk22D 5 жыл бұрын
Great interview David
@RaulEduardoFloresNajera
@RaulEduardoFloresNajera 5 жыл бұрын
David, please add Nornir and create GUI interfaces for our scripts in to your courses... Thanks for this video
@ucs207
@ucs207 5 жыл бұрын
25:42 Right Ansible version Dmitry , made me chuckle, Ansible is great but troubleshooting is pain ( I know -vvvv switch) , Also once you have this playbook working different version of ansible !!!! .
@gangadharshaktiman8606
@gangadharshaktiman8606 5 жыл бұрын
Hi David Great video
@egray1812
@egray1812 5 жыл бұрын
He mentioned an article at about 21:34 for nornir to update Operating Systems. Could you also post that link? Great interview! I am standing this up as I watch this!
@davidbombal
@davidbombal 5 жыл бұрын
Have a look here: pynet.twb-tech.com/blog/nornir/os-upgrade-p1.html and here: pynet.twb-tech.com/blog/nornir/os-upgrade-p2.html
@WalterScharnick
@WalterScharnick 5 жыл бұрын
Thanks. I would really like to test this. Copying using SCP to over 300 devices via a VSAT network is not the best use of your time 😖
@fernandofranco8836
@fernandofranco8836 3 жыл бұрын
I think certifications are a guide and show the level of knowledge you have and from there depends on learning more and expand on the level of knowledge you have. For me I think is a good way to measure a skill and the expansion of knowledge and skills will always depend on the person.
@daxmickelson6884
@daxmickelson6884 Жыл бұрын
Hi Dmitry!
@kamilmiekus3185
@kamilmiekus3185 4 жыл бұрын
Ansible assert module takes care of syntax check. Coupled with regex is quite powerful...
@patrickcummings6871
@patrickcummings6871 5 жыл бұрын
David...how about a combination of the two for being a network automation engineer, for ex. get your CCNA or CCNP and then Python programming education and do both! A hybrid of the two. I like networking and programming both but I don't want to fry my brain to get CCIE. Would CCNA and good Python programming skills be enough? Why are you always pushing the CCIE?
@davidbombal
@davidbombal 5 жыл бұрын
I have often said and so have most of the people I interviewed that you should get your CCNA & CCNP and work on Python. For example, once you have your CCNA, then start with Python and try to learn Python at the same time as studying for your CCNP. Best to have both. I only mention CCIE in a lot of videos because people ask me about CCIE vs Python. It is up to you if you want to get a CCIE - I am not pushing everyone to become a CCIE - it is your choice :)
@GoatTHEGreat
@GoatTHEGreat 5 жыл бұрын
David, what are your thoughts on GoLang for Network Engineers?
@davidbombal
@davidbombal 5 жыл бұрын
Stuart gives a good answer here (he starts talking about Go and then compares to Python): kzfaq.info/get/bejne/j6iPiKqBqcm8eac.html
@estring69
@estring69 3 жыл бұрын
Glad I viewed this video. I know more Python than Ansible.
@BobbyWilliams39443
@BobbyWilliams39443 5 жыл бұрын
I agree with Dmitry that using raw python is better than ansible. However, I now choose Golang hands down. Goroutines will kill python threads any day....even python’s async io.
@AdventurousMagic
@AdventurousMagic Жыл бұрын
Nice I'll have to look into
@AH-ps3uv
@AH-ps3uv 4 жыл бұрын
Hello David, so i am assuming from the courses that you have on udemy that you have spent a fair share amount on stuff like netmiko/napalm as well as ansible, i am curious what is your opinion about this 'rather direct python instead of ansible' subject?
@davidbombal
@davidbombal 4 жыл бұрын
I personally prefer Python. Especially with newer options like Genie and Nornir. Makes things a lot easier and I have a programming background so I prefer being able to "directly control my own destiny". However, a lot of others prefer Ansible.
@AH-ps3uv
@AH-ps3uv 4 жыл бұрын
@@davidbombal top, thx for the reply it gives a good insight about other peoples opinions. by the way your udemy course about python network automation is awesome, so are Dmitry Figol his streams.
@AdventurousMagic
@AdventurousMagic Жыл бұрын
If he codes live, that means he knows what he's doing ;)
@simofsimenz
@simofsimenz 5 жыл бұрын
Is the link to nomir working? Not working for me. Oh got it, Nornir.
@ebenezerawuah-asomaning4868
@ebenezerawuah-asomaning4868 5 жыл бұрын
David please what phone do you use, will be very happy to know
@davidbombal
@davidbombal 5 жыл бұрын
I have an iPhone X and iPhone XS Max which I use for recordings. The one camera in this video is an iPhone XS Max and the audio recordings are taken on an iPhone X.
@ebenezerawuah-asomaning4868
@ebenezerawuah-asomaning4868 5 жыл бұрын
Thanks for the infomation
@ristoshikongo7730
@ristoshikongo7730 2 жыл бұрын
What I love about listening to people that are smarter than myself is that I have no clue what they are discussing.
@innbydelse
@innbydelse 4 жыл бұрын
I too, love to hate on Ansible.
@davidbombal
@davidbombal 4 жыл бұрын
lol... everyone has their favourite and hated automation tools :)
@mohamednabil6447
@mohamednabil6447 5 жыл бұрын
First big like
КАРМАНЧИК 2 СЕЗОН 7 СЕРИЯ ФИНАЛ
21:37
Inter Production
Рет қаралды 544 М.
Каха и суп
00:39
К-Media
Рет қаралды 5 МЛН
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 26 МЛН
Python, Genie and CSV Files = Easy Network Automation (DevNet)
51:33
Managing 15,000 network devices with Ansible
35:55
Red Hat Summit
Рет қаралды 45 М.
Python Skills and Techniques for Network Engineers, Part 1
57:54
Cisco DevNet
Рет қаралды 54 М.
Deep Dive Into Model Driven Programmability with NETCONF and YANG
59:34
Intel's CPUs Are Failing, ft. Wendell of Level1 Techs
23:59
Gamers Nexus
Рет қаралды 382 М.
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
Automate your network with Nornir - Python automation framework
48:23
Efficient network automation with Nornir and Napalm
23:17
КАРМАНЧИК 2 СЕЗОН 7 СЕРИЯ ФИНАЛ
21:37
Inter Production
Рет қаралды 544 М.