Driving your datacenter
with Python and ACI

Code : ACIPK2

Version : 2.1
Durée (j) : 2
Durée (h) : 14
Prix HT : 1900€
Prix CLC HT : 27



Nos prochaines dates :
Dates à venir


5 jours pour

  • This course is designed to take you from zero Python experience to deploying your very own tenant in ACI in the span of two days.
  • We’ll cover enough of the basics of Python to give you a working understanding of the language – including strings and string formatting, comparison and arithmetic operators, lists and dictionaries, and even for and while loops.
  • Once you’re up to speed on the basics of Python we’ll introduce you to the requests module – the module that makes this class possible.
  • You’ll gather data from a public API all with your very own script.
  • Next you’ll take a deeper dive into APIs (in particular the API of ACI), what is an API, how does it work, and how you can learn about and discover more about ACI’s API yourself.
  • You’ll then start manipulating JSON or XML data to craft your very own objects (tenants, VRFs, Bridge Domains, etc.), which you will use to deploy to the fabric. Once you’re comfortable with ACI’s API and the structure of it’s objects, we will walk you through a lab to deploy a Bridge Domain – entirely with Python.
  • Finally, once you’ve been equipped with all the tools you’ll need, you’ll have time to begin crafting your “Capstone Script” to deploy an entire tenant, complete with VRFs, Bridge Domains, EPGs, and even contracts if you’re up to.


A qui s’adresse ce cours ?



It is recommended, but not required, that students have basic knowledge of:

  • Good understanding of networking protocols
  • Recommend CCNP Certification or equivalent knowledge
  • Good understanding of the VMware environment
  • Recommend attendance of the VMware vSphere: Install, Configure, Manage class or equivalent knowledge

Déroulement du stage

Day 1

– Introduction: Instructor and student introductions, overview of the class and any required logistics (restrooms, RFID badges, etc.)

– Introduction to Python: Introduce Python as a language, discuss Python 2 vs Python3 as it pertains to programmable networks, understand where to get Python (if you don’t already have it), and introduce the Python Interpreter

– Python Basics: Learn about Variables, Arithmetic and Assignment Operators

– Lab: “Hello (west)World”, and introduction to variables

– Lab: Numbers, Strings, and Lists Oh My! + Dictionaries

– Lab: Dictionaries

– Conditionals and Loops: Talk about what a conditional is, and the various types of loops you will encounter in Python

– Lab: Conditionals, Looping and Repetition — put into practice what you’ve learnt about conditional and comparative operators as well as “if”, “for”, and “while” loops! – Input and Output: Learn how you can gather input from users, as well as how and where you can output that data – Lab: Write your first “full” (not in the interpreter) Python script to handle user input and output information to a file

– Exception Handling: All code has bugs or runs into issues, learn how we can “handle” those issues as they arise in our Python scripts

– Lab: Exception Handling – JSON: Understand the basics of the JSON file format, and why it is so useful. This will be critical when we start interacting with our APIs

– Lab: JSON – Break – Requests: Learn about the silver bullet that makes Python so incredibly powerful at interacting with HTTP APIs.

– Lab: Make an API call to a public API with Python


Day 2

– ACI Basics: Learn about the basic objects and structures you’ll need to know about in order to get started programming against ACI. You’ll also get introduced to a handy tool called Postman

– Lab: Querying ACI

– ACI Tools: Discuss some other tools available for interacting with ACI in a programatic fashion, including the “Save” and “Post” magic buttons

– Lab: APIC GUI Save and Post

– Lab: Deploying with Postman

– Lab: Advanced Postman Functionality

– Lab: Query and Deploy with Python

– What to Automate?: Discuss what to do with your new found powers? What are people in the field automating, what can you automate to make your life easier?

– Lab: “Capstone” Project – Review: Review the example “Capstone” script to make sure it is thoroughly understood



01 53 20 37 00