image

published Run in Cisco Cloud IDE

SOFTWARE-DEFINED-NETWORK-INVENTORY-ADDING-ACI-AND-SD-WAN

Software defined network ACI & SD-WAN inventory with Python work over requests library to simplify and accelerate the process of collecting and organizing information about network devices. By leveraging the power of Python programming, network administrators can create customized scripts that automate the collection of device data, enabling them to quickly and accurately generate an inventory of all devices on their network. In this scenario we are going to work with sandbox ACI and SD-WAN.

Click on the logo to see the demo!

image

In order to generarte a report for SD-WAN AND ACI as initial point is necesary respond this questions:

  • Click to Machine Logo to check the video!!!

  • How can we talk to the controllers?
    We are going to use REST API

  • What API are available to retrieve the information?

  • How can we explore and test the APIs?
    ACI Inspector and Postman

  • How can we use those APIs in Python?
    We are going to work with the library requests

  • How do we add this feature to the inventory script?
    Create a New Script for ACI / SD_WAN

  • Library to interact: requests, pyATS
Topics Description Title Notes
INSTALL PYTHON AND DEPENDENCIES Install Python 3.10.2. INSTALL PYTHON AND DEPENDENCIES In this first step you install your Python.
INSTALL ANYCONNECT VPN CLIENT Install VPN Client via CLI INSTALL ANYCONNECT VPN CLIENT In this second step you are going to install your vpn anyconnect client.
INSTALL GIT Install GIT via CLI INSTALL GIT In this step you install git in your environment.
SCRIPT INVENTORY ACI & SD-WAN Script to collect inventory for ACI and SD-WAN SCRIPT INVENTORY ACI & SD-WAN In this section you are going to generate the inventory using python.
SCRIPT TO CREATE A CSV FILE Script to generate a CSV File SCRIPT TO CREATE A CSV FILE In this step you are going to dowload the files captured previously via Python.

PROOF OF CONCEPT

SOFTWARE.DEFINED.NETWORK.INVENTORY.-.ADDING.ACI.AND.SD-WAN.mp4

REFERENCES

View code on GitHub

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.