Full Configuration
Network as Code for Application Centric Infrastructure (ACI) can be used to instantiate ACI fabrics in minutes. An example with a complete ACI configuration is available at https://github.com/netascode/nac-aci-comprehensive-example.git
- README.md
Directorydata
- access_policies.nac.yaml
- apic.nac.yaml
- defaults.nac.yaml
- fabric_policies.nac.yaml
- node_1101.nac.yaml
- node_1102.nac.yaml
- node_2201.nac.yaml
- node_2202.nac.yaml
- node_policies.nac.yaml
- pod_policies.nac.yaml
- tenant_PROD.nac.yaml
- tenant_infra.nac.yaml
- tenant_mgmt.nac.yaml
- vmm_domains.nac.yaml
- main.tf
This repository contains a full example of provisioning an ACI fabric. This example assumes a clean environment whereby only the initial Application Policy Infrastructure Controller (APIC) configuration has been completed. Should you want to include additional switches, it is recommended to add another node_xxx.nac.yaml
file. One for each additional switch. Also make sure to add the new nodes with their respective Serial Numbers (SNs) to the nodes:
section, starting at line 18 in node_policies.nac.yaml
. An example of adding another leaf switch can be found below:
- id: 1103 pod: 1 role: leaf serial_number: SN-1-1103 name: leaf-1103 oob_address: 10.51.77.96/24 oob_gateway: 10.51.77.254 update_group: MG1 fabric_policy_group: all-leafs access_policy_group: all-leafs
For more information on how to use the data model, navigate to the data model section on this page. To learn more about how to use this code, make sure to check out the ACI -> First Steps. The guide for Continuous Integration / Continuous Development (CI/CD) can also be used for this example code. Whilst the CI/CD example section makes use of the Simple Example (containing a single tenant), this can be replaced with the comprehensive example.