This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

Cisco_Nexus_ZTP

Automate Cisco Nexus Provisioning
The code will implement Nexus upgrade, initial configuration & VPC domain configuration without touching the switches command line interface using Python application interactive interface.
Using the file NXOS VPC Automation.pdf (attached) in the link https://github.com/OSOSAutomation/Cisco_Nexus_ZTP/blob/main/NXOS%20VPC%20Automation.pdf will help you to use this code & generate similar codes in an easy way.
Please refer to Cisco press books + Python certified books for a solid understanding about the theories behind this solution.
Python is one of the major new programmability coding languages nowadays used in large next generation networking solutions based on implementation automation.
There is no much time like earlier days to configure devices manually especially with the standardized configuration required over multiple networking devices.
Automation is required in everyday task to facilitate faster working with day-to-day activities.
The first thing to understand automation is to define the best programming language that will be used for automation.
Adding to Python scripts, the use of YANG (Yet Another Next Generation) along with NETCONF (NETwork CONFiguration) & RESTAPI (RESTful Application Programming Interface) as certified by IETF (Internet Engineering Task Force) provides the required tool for this modeling and device interaction.
In our lab here, we will be using Python to define all the required programmability & automation tasks as a DMD (Data-Model Driven) as well as a coding software to the appliances.
This code is going according to the following procedure:
Why Python in this section from the handbook, we'll be defining why Python is a great programming language to be used for Cisco network programmability & automation.
Solution Flowchart: as a startup, we should define what's required to be achieved & how, that's simply done using a flowchart methodology.
Application Structure: Python is a great language to be cretate piece of codes integrating with each other & this section describes how this can be achieved.
Phase-1: Meet The Application: an introduction interface to the application.
Phase-2: Checking For Upgrades: first step with any networking device is to access it & check if it meets your software requirements.
Phase-3: POAP: a standard protocol required to interact & initialize Cisco Nexus switches.
Phase-4: Device Initialization: initial configuration of Nexus switch.
Phase-5: VPC Configuration: the core configuration to build a datacenter switch automated with Python.
Phase-6: Complementary Configuration: additional configuration required to make the switch ready to use.
Phase-7: Finalizations & Confirmations: testing the code in a real-life devices.
Using this code will make the life of datacenter engineers an awesone with min. efforts, am sure you will enjoy it.

View code on GitHub
  • Owner

  • Contributors

    +1Github contributor
  • Categories

  • Products

    NX-OS
  • Programming Languages

    Python
  • License

    GNU General Public License v3.0

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.