Quickly Deploy Commands with Netmiko, Napalm, or Ansible!
A few years back, I had released Quick Deploy 1.0 to /r/networking. You can find that thread here.
Quick Deploy lets you send an arbitrary list of commands - either "show" commands or configuration - to an arbitrary list of network devices.
This time around, I decided to build Quick Deploy for three popular frameworks - Netmiko, Napalm, and Ansible.
Feel free to use whatever version of the script you'd like!
Source Code
https://github.com/syedur-rahman/networkcoder/tree/master/projects/quick_deploy
Demonstrations
Netmiko:
https://i.imgur.com/IsD9tuL.gif
Napalm:
https://i.imgur.com/ZST90Pz.gifv
Ansible:
https://i.imgur.com/GOv4qlp.gifv
Conclusion
The usage and setup per each version of the script is detailed in the repository but feel free to ask me any questions if you encounter issues.
There's also some additional notes about the logic and framework comparisons in the repository if you are interested.
Good luck and happy automating!
Disclaimer: Please note that the code is meant to be educational in nature and should be modified and tested if you plan to use it in your environment.
No comments:
Post a Comment