A simple PoC demonstrates how a few lines of Python code can retrieve the switch VLAN configuration from Google Sheets and use Arista’s eAPI to implement changes to the switch. A few more lines of code enable a constant track of changes in the spreadsheet. This presentation will demonstrate the power of network programmability for automation and orchestration challenges.
File Type:
pdf
Categories:
Network Infrastructure
Presenters :
Ievgen Kostiukevych - EBU
Year :
2019
dlp_document_download :
©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater C U R A T E D B Y I P S H O W C A S E T H E AT E R AT N A B – A P R I L 8 -11 , 2 01 9 Network Automation Using Python and Google Sheets Ievgen Kostiukevych IP Media Technology Architect European Broadcasting Union ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 2 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 3 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 4 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 5 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 6 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 7 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater Idea • A centralized, but dynamic and collaborative repository for often changed switch parameters. • A centralized, but dynamic and collaborative view of troubleshooting data from the switch, the "show" commands. • A real time update or periodic polling of both. • Has to support Arista switches 8 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater Possible solutions • CLI? • Ansible? • Python? ‒ CLI (Telnet/SSH)? ‒ JSON? ‒ Native API? 9 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater Python • telnetlib • paramiko • netmiko • pyeapi 10 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater telnetlib 11 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater paramiko 12 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater netmiko 13 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater pyeapi 14 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 15 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 16 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 17 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 18 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 19 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 20 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 21 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 22 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater What about real time update? 23 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 24 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 25 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 26 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 27 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater 28 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater Useful links • https://github.com/ktbyers/netmiko • https://github.com/paramiko/paramiko • https://docs.python.org/3.7/library/telnetlib.html • https://pyeapi.readthedocs.io/en/latest/index.html • https://github.com/ievgen -kostiukevych/Google -Spreadsheet -Driven - Arista -eAPI -Automation -Demo • https://www.gns3.com/ 29 ©Ievgen Kostiukevych, kostiukevych@ebu.ch , Special for NAB 2019 IP Showcase Theater C U R A T E D B Y I P S H O W C A S E T H E AT E R AT N A B – A P R I L 8 -11 , 2 01 9 Thank You Ievgen Kostiukevych IP Media Technology Architect European Broadcasting Union kostiukevych@ebu.ch +41 79 225 37 35
Downloads:
7