|
1 | | -# aci-learning-labs-code-samples -> sbx-intro-aci |
| 1 | +# ACI Learning Labs Code Samples |
| 2 | +This repository holds the code samples for the [DevNet](http://developer.cisco.com) Learning Labs for Application Centric Infrastructure. This includes the following modules: |
| 3 | + |
| 4 | +* [Introduction to ACI Programmability](https://learninglabs.cisco.com/modules/intro-to-aci) |
| 5 | + * Code Samples located in directory [sbx-intro-aci](sbx-intro-aci) |
| 6 | +* [Intermediate ACI Programmability](https://learninglabs.cisco.com/modules/intermediate-aci-prog) |
| 7 | + * Code Samples located in directory [sbx-intermediate-aci](sbx-intermediate-aci) |
| 8 | + |
| 9 | +## Local Workstation Requirements |
| 10 | +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. |
| 11 | + |
| 12 | +> Full details on how to setup are included in the Learning Lab Setup Steps. |
| 13 | +
|
| 14 | +1. Python 2.7.12 or higher |
| 15 | +1. Python Virtual Environment `pip install virtualenv` |
| 16 | +1. [ACI Cobra SDK](http://cobra.readthedocs.io) for Python |
| 17 | +1. [ACI Toolkit](http://acitoolkit.readthedocs.io) for Python |
| 18 | + |
| 19 | +> It is highly recommended to install all Python requirements within a virtual environment, and not the default Python environment on your workstation. |
| 20 | +
|
| 21 | +## Sandbox Lab Infrastructure Setup |
| 22 | +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: |
| 23 | + |
| 24 | +> Details also included within the Learning Labs themselves |
| 25 | +
|
| 26 | +```bash |
| 27 | +# Clone down this code repository & enter the setup directory |
| 28 | +git clone https://github.com/CiscoDevNet/aci-learning-labs-code-samples |
| 29 | +cd aci-learning-labs-code-samples/apic_fabric_setup |
| 30 | + |
| 31 | +# Run the baseline scripts |
| 32 | +python baseline.py |
| 33 | + |
| 34 | +``` |
| 35 | + |
| 36 | +```bash |
| 37 | +# Expected Output |
| 38 | +Baselining APIC Simulator for Learning Labs |
| 39 | +Setting up Fabric Nodes |
| 40 | +Configuring Fabric Policies |
| 41 | +Setting up Common Tenant |
| 42 | +Setting up Heroes Tenant |
| 43 | +Setting up SnV Tenant |
| 44 | +``` |
0 commit comments