Currently in Migration - Jason Edelman's Old Blog
  • Home
  • About
  • Contact

Automating Cisco Nexus Switches with Ansible

12/23/2014

3 Comments

 
In previous posts, I’ve written about using Ansible for network automation.  Few of them can be found here, here, here, and here.  In one of the posts, I had a video that was automating Cisco routers with Ansible, and was using onePK as the API to communicate to the device.  In this post, I’ll be focusing on automating Nexus switches – this means each of the Ansible modules will be using NX-API to communicate with the device.  This also eliminates the need for the users of these modules to know Python as they’ll be using the Ansible platform for their specific automation needs.
While the demo below is for configuration automation and shows what can be done in just a few seconds, it needs to be understood that automation is much more than pushing configurations.  I hope to show some of this first hand by doing more interesting things as it pertains to data gathering, verification, troubleshooting, that do increase speed and agility, but also predictability.

The following video shows how Ansible can be used to automate interfaces and VLANs on Nexus switches.   This will be the first in a series of videos that will show how Ansible can be used to stand up (config, deploy) a complete leaf/spine topology using Nexus switches.
For those who do not watch the video, here are a few screen shots that show the Ansible hosts file and playbook being used in the demo along with a few slides that describe/show the parameters that can be used for each module.

hosts file:
Picture
playbook: 
Picture
nxapi_interface module overview:
Picture
nxapi_vlan module overview:
Picture
Code Access / Roadmap:
Picture
These modules are posted on GitHub and can be found here.  If anyone wants to chat or dive into Ansible, these specific modules, or NX-API in a bit more detail, feel free to reach out.  I would love to catch up.

Thanks,
Jason

Twitter: @jedelman8

3 Comments
Marcus
1/9/2015 04:32:19 am

Great post!
Are you using physical switches or is there virtual 3k/9k available that support NX-API?

Reply
yamrock
2/3/2015 10:47:13 pm

Jason,
What are your thoughts on tail-f ? www.tail-f.com. I was specifically impressed by the well thought out design philosophy for controllers in general (here :https://www.youtube.com/watch?v=SzT2i52T74k#t=1549. )
Appreciate the discussion.

Reply
Duplex
2/18/2015 02:35:58 pm

Maximum standards OM1 laserlight optimised multiple mode cable intended for 10Gb Ethernet (250 metres with 1Gb into thirty metres with 10Gb), however suitable for both equally LED and VCSEL laserlight mild places. Proposed intended for inside contacts inside pantry shelves involving nutritional fibre area sections and knobs wherever 62.5/125 OM1 Adjustable Method cable has become utilized in the particular infrastructure.
For more info: DuelTek.com.au

Reply



Leave a Reply.

    Author

    Jason Edelman, Founder of Network to Code, focused on training and services for emerging network technologies. CCIE 15394.  VCDX-NV 167.


    Enter your email address:

    Delivered by FeedBurner


    Top Posts

    The Future of Networking and the Network Engineer

    OpenFlow, vPath, and SDN

    Network Virtualization vs. SDN

    Nexus 7000 FAQ

    Possibilities of OpenFlow/SDN Applications 

    Loved, Hated, but Never Ignored #OpenFlow #SDN

    Software Defined Networking: Cisco Domination to Market Education

    OpenFlow, SDN, and Meraki

    CAPWAP and OpenFlow - thinking outside the box

    Introduction to OpenFlow...for Network Engineers


    Categories

    All
    1cloudroad
    2011
    2960
    40gbe
    7000
    Arista
    Aruba
    Big Switch
    Brocade
    Capwap
    Christmas
    Cisco
    Controller
    Data Center
    Dell Force10
    Embrane
    Extreme
    Fex
    Hadoop
    Hp
    Ibm
    Isr G2
    Juniper
    Limited Lifetime Warranty
    Meraki
    Multicast
    N7k
    Nexus
    Nicira
    Ons
    Opendaylight
    Openflow
    Openstack
    Presidio
    Qsfp
    Quick Facts
    Routeflow
    Sdn
    Sdn Ecosystem
    Security
    Ucs


    Archives

    May 2015
    April 2015
    February 2015
    January 2015
    December 2014
    November 2014
    October 2014
    September 2014
    August 2014
    June 2014
    May 2014
    March 2014
    February 2014
    January 2014
    December 2013
    November 2013
    October 2013
    September 2013
    August 2013
    July 2013
    June 2013
    May 2013
    April 2013
    March 2013
    February 2013
    January 2013
    December 2012
    November 2012
    October 2012
    June 2012
    May 2012
    April 2012
    March 2012
    February 2012
    January 2012
    December 2011
    November 2011


    RSS Feed


    View my profile on LinkedIn
Photo used under Creative Commons from NASA Goddard Photo and Video