Do We Need Network Programmability?
Jsicuran left this comment on my You Must Understand the Fundamentals to Be Successful blog post:
I just went through some Cisco webinar where they were showcasing the use of NX-OS API and Python to add a VLAN. I do some Python myself and have used that API for some simple DevOps-like uses, but for the most part if you are an enterprise and use Prime DCIM to add VLANs, why should you go through the coding process?
It obviously depends on where you are in your IT automation journey.
If you're still deploying everything by hand, and your server administrators handcraft VMs from ISO images, then DCIM is the way to go. It gives you a somewhat consistent view of your data center, and you can deploy something like a VLAN across multiple boxes without ever logging into one.
I’ve seen environments where it takes weeks if not months to deploy a new VM because so many teams have to touch it. Don’t get me started…
If however your server/application people got further along on their path toward DevOps, they might start getting annoyed that they can deploy a VM in 5 seconds, but it still takes dozens of GUI clicks to get a new VLAN deployed (see also the story of my exasperation when I was forced to deal with storage GUI). In those environments the need to program networking devices becomes pretty urgent.
To learn more about first steps of network automation, watch the free Network Programmability 101 webinar (also part of free Introduction to SDN bundle).
As for "resource provisioning for non-network teams", look at numerous Neutron plugin implementations.
Finally, totally agree that "you need a solid foundation to build this on", but as usual the vendor marketers are telling everyone who's willing to listen that fairies and unicorns will make it work.
1. run a script from Ubuntu or any Linux machine which opens up ssh session to my nexus 7k or 5k switch. go to Ethernet1/10 and make it switchport access vlan 10, switchport mode access
2. second script should do validation like "show int eth1/10" sh run int e1/10 and print the output to email group called [email protected]
if I do this automation in my small world, I can skip waking up at 4 AM in morning every alternate day and have the script do its work. so that I can spend my time to other projects of my company.
is this doable via python? my switches are running 5.1.0 or 5.2.0 IOS for 7k and 5k. I need to know python is compatible with that IOS ?
please provide me guidance for this
Thanks
visio chambers
Alternatively, you could use Puppet or Chef on Nexus switches to get the job done.