Python aiohttp, NetBox and Introduction to Ansible – Network programmability stream 6

Опубликовано: 10 Июль 2026
на канале: dmfigol live
2,643
22

This is the recording of the network programmability stream which occurred on 2018/02/25

During this stream we improved the script which configures the network based on the information in IPAM NetBox using aiohttp - asynchronous library to make HTTP requests.
In the end we started playing with Ansible.
Also, thanks for interesting questions in the chat!

Timecode:
0:00 - State of the lab
11:32 - Small fixes to show the current progress
20:10 - Demo of the current work done
26:54 - Problem with the current version of the script: synchronous HTTP calls in async loop
30:50 - Q&A with the live audience
50:20 - Showing the problematic code
53:10 - Create a new script using aiohttp to interact with NetBox
1:27:00 - Applying aiohttp to the original script
2:09:50 - Introduction to Ansible
2:31:55 - Ansible inventory, variables and ios_facts module

NetBox: https://github.com/digitalocean/netbox
aiohttp: https://aiohttp.readthedocs.io/en/sta...
Ansible: http://docs.ansible.com/ansible/lates...

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   / dmfigol  
The code is on my github: https://github.com/dmfigol/network-pr...
To chat between streams join discord:   / discord  

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

Background music by New Design Music:
   / newdesignmusic  
http://newdesignmusic.bandcamp.com/