https://github.com/ciscodevnet/aci-learning-labs-code-samples
https://github.com/ciscodevnet/aci-learning-labs-code-samples
aci aci-programmability apic cisco learning-labs python sbx
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ciscodevnet/aci-learning-labs-code-samples
- Owner: CiscoDevNet
- Created: 2017-09-22T15:23:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-26T00:22:33.000Z (about 1 year ago)
- Last Synced: 2025-04-01T13:49:29.266Z (9 months ago)
- Topics: aci, aci-programmability, apic, cisco, learning-labs, python, sbx
- Language: JavaScript
- Size: 152 KB
- Stars: 39
- Watchers: 41
- Forks: 32
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ACI Learning Labs Code Samples
This repository holds the code samples for the [DevNet](http://developer.cisco.com) Learning Labs for Application Centric Infrastructure. This includes the following modules:
* [Introduction to ACI Programmability](https://learninglabs.cisco.com/modules/intro-to-aci)
* Code Samples located in directory [sbx-intro-aci](sbx-intro-aci)
* [Intermediate ACI Programmability](https://learninglabs.cisco.com/modules/intermediate-aci-prog)
* Code Samples located in directory [sbx-intermediate-aci](sbx-intermediate-aci)
## Local Workstation Requirements
The code samples in these labs all leverage Python as the programming language. In order to run the exercises and code, you'll need to meet the following requirements.
> Full details on how to setup are included in the Learning Lab Setup Steps.
1. Python 3.7.5 or higher
1. [ACI Cobra SDK](http://cobra.readthedocs.io) for Python
1. [ACI Toolkit](http://acitoolkit.readthedocs.io) for Python
> It is highly recommended to install all Python requirements within a virtual environment, and not the default Python environment on your workstation.
## Sandbox Lab Infrastructure Setup
Also included in this repository are scripts to prepare the DevNet Always On Sandbox for ACI/APIC. These scripts initialize the APIC Simulator and deploy the tenants and application policy leveraged in the Learning Labs. To run the baselining scripts:
> Details also included within the Learning Labs themselves
```bash
# Clone down this code repository & enter the setup directory
git clone https://github.com/CiscoDevNet/aci-learning-labs-code-samples
cd aci-learning-labs-code-samples/apic_fabric_setup
# Run the baseline scripts
python baseline.py
```
```bash
# Expected Output
Baselining APIC Simulator for Learning Labs
Setting up Fabric Nodes
Configuring Fabric Policies
Setting up Common Tenant
Setting up Heroes Tenant
Setting up SnV Tenant
```