Skip to main content

Tests Python Support

aac-init

A CLI tool to bootstrap and configure ACI fabric using ACI as Code.

$ aac-init -h
Usage: aac-init [OPTIONS]

  A CLI tool to bootstrap and configure ACI fabric using ACI as Code.

Options:
  --version                       Show the version and exit.
  -d, --data PATH                 Path to aac-init YAML data files.
                                  [required]
  -l, --log-level [debug|info|warning|error|critical]
                                  Specify the logging level. Default setting
                                  is 'info'.  [default: info]
  -t, --max-switch-concurrent INTEGER
                                  A number of max TFTP concurrent requests.
  -h, --help                      Show this message and exit.

All data from the YAML files (-d/--data option) will use to bootstrap and configure ACI fabric.

In case there's bandwidth limitation with TFTP server and cannot support a large concurrent switch requests, use -t to limit switch concurrent requests, there's no limitation by default.

The data folder MUST use following structure, 00-global_policy.yml and 01-fabric_mgmt.yml are mandatory required, see docs/data_template for details.

data/
├── 00-global_policy.yml      # mandatory, ACI fabric global policies
└── nac_data
    ├── 01-fabric_mgmt.yml    # mandatory, ACI fabric switch connection information
    └── other-yaml-files..    # optional, other ACI as Code configurations

Prerequisite

  • Working knowledge of ACI and Network as Code - ACI
  • A HTTP/TFTP server is required to store APIC/ACI switch image for wiping/booting APIC/ACI switch to particular version. See docs/image_server if you don't have experience on setting up image server.

Installation

Python 3.10+ is required to install aac-init. Don't have Python 3.10 or later? See Python 3 Getting Started.

aac-init can be installed using pip:

pip install aac-init

You will also need to install ansible and related NetworkAsCode dependencies, see Cisco Network As Code - Ansible for details. You can also find requirements.yml/requirements.txt at docs/requirements.

apt-get install ansible
ansible-galaxy install -r requirements.yml
pip install -r requirements.txt

Usage

$ aac-init -d data/
Select single or multiple choice(s) to init ACI Fabric:
[1]  Wipe and boot APIC/switch to particular version
[2]  APIC initial setup (Single Pod)
[3]  Init ACI Fabric via NaC (Network as Code)
Example: (1,2,.. or *): *

Are you sure to proceed with the following choice(s)?
[1] Wipe and boot APIC/switch to particular version
[2] APIC initial setup (Single Pod)
[3] Init ACI Fabric via NaC (Network as Code)
 (yes, no) [yes]:

Update aac-init to latest version

pip install aac-init --upgrade

Uninstallation

pip uninstall aac-init

FAQ

Contact

Rudy Lei

Contributors

Rudy Lei
Yang Bian
Xiao Wang
Song Wang
Linus Xu

Metadata

Release files for aac-init 0.5.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aac-init 0.5.11
File Size Uploaded Provenance Actions
aac_init-0.5.11.tar.gz 52.8 kB Without provenance Details for aac_init-0.5.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aac-init 0.5.11
File Interpreter ABI Platform Actions
aac_init-0.5.11-py3-none-any.whl Python 3 none any Details for aac_init-0.5.11-py3-none-any.whl

Total release size: 120.1 kB

Release files / aac_init-0.5.11.tar.gz

Download URL aac_init-0.5.11.tar.gz
Size 52.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ae09187734234db5a1148eba780e10b87c4b5b3b68121ef0f796b0c297c668b6
BLAKE2b-256 checksum
How to use checksums
18b04f7145e89f2afb8659f42b493d4287342ad033c6d1e134356b366fc8e22a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.3 Linux/6.8.0-1021-azure

Release files / aac_init-0.5.11-py3-none-any.whl

Download URL aac_init-0.5.11-py3-none-any.whl
Size 67.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae915f29b2397a6d8622718b5f6c9874ce97dc2a2445e53c7211d831ad415b6d
BLAKE2b-256 checksum
How to use checksums
40483b893347727407f0a161c4efa3ac55daf26bc34801f1f8831c4f0cd80b4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.3 Linux/6.8.0-1021-azure

Security for aac-init 0.5.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page