Loading...

Nornir: Python automation framework – Network programmability stream 17

3,403 views

Loading...

Loading...

Transcript

The interactive transcript could not be loaded.

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Jul 3, 2018

The recording of the network programmability streamwhich occurred on 2018/07/01

On this stream we had the first look at Nornir - Python automation framework written by David Barroso, Patrick Ogenstad and Kirk Byers. Previously, this project was known as Brigade but got recently renamed.
Nornir feels very similar to Ansible but has some drastic changes in comparison: while Nornir can use declarative inventory and vars files in YAML format (or any other format), similar to Ansible, Nornir "playbooks" are written in pure Python instead of YAML. This removes any limits introduced by Ansible/YAML declarative style of your tasks. Also Nornir uses Python multithreading, which scales much better than Ansible multiprocessing (forks), especially in the networking context, where network (I/O) is the bottleneck, not CPU.
Additionally, because Nornir is 100% Python, it is very easy to write new plugins or tasks, if you know Python.
It is a very young project, but it has a lot of potential.

Timecode:
0:00 - Introduction, news and announcements
15:02 - Why Nornir? Ansible vs Nornir
28:08 - Lab environment
37:12 - Getting started with Nornir
39:50 - Nornir: inventory
1:15:30 - Nornir: inventory filtering
1:38:45 - Nornir: running tasks
2:00:00 - Nornir: network configuration using templates and NAPALM
2:30:13 - Nornir: network configuration using templates and netmiko
2:40:57 - Nornir: Ansible inventory plugin
2:55:04 - Nornir: sending REST API calls - GNS3 API example
3:04:00 - Stream summary

Resources:
Nornir - https://nornir.readthedocs.io/en/latest/
Python 3.7 new features: https://realpython.com/python37-new-f...
Ansible 2.6: https://www.ansible.com/blog/your-tim...
Netmiko fast_mode: https://github.com/ktbyers/netmiko/pu...
Python for network engineers book [Russian]: https://natenka.github.io/pyneng-online/

Please note that this content is stream-first and it is slow-paced by design. I recommend increasing playback speed in the player settings.

Don't miss my upcoming streams at https://twitch.tv/dmfigol
The code is on my github: https://github.com/dmfigol/network-pr...
To chat between streams join discord: https://discord.gg/qMMQZ3z

Twitter: https://twitter.com/dmfigol
Blog: https://dmfigol.me

Background music (royalty-free):
https://www.pretzel.rocks/

Loading...

Advertisement

to add this to Watch Later

Add to

Loading playlists...