Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aac_init-0.5.7.tar.gz (46.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aac_init-0.5.7-py3-none-any.whl (59.3 kB view details)

Uploaded Python 3

File details

Details for the file aac_init-0.5.7.tar.gz.

File metadata

  • Download URL: aac_init-0.5.7.tar.gz
  • Upload date:
  • Size: 46.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for aac_init-0.5.7.tar.gz
Algorithm Hash digest
SHA256 b4b2a7a082a62657233c47b08dd6dc01ec7283f8d32dabd60e778f12cbb57c5d
MD5 45145551be026ae31e9744e439e49298
BLAKE2b-256 09bd0aeab01fc4441be4dd7b6264fba8d57c8b02bb517b4f47eabcf3d3e85cdc

See more details on using hashes here.

File details

Details for the file aac_init-0.5.7-py3-none-any.whl.

File metadata

  • Download URL: aac_init-0.5.7-py3-none-any.whl
  • Upload date:
  • Size: 59.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for aac_init-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8162c11198d84939a0bf72975acf873c4c25ddc72283ddc8025070abbdd250ec
MD5 6fb183276775955e3bc59a20ceed255d
BLAKE2b-256 c1481561cfcd17f965f750abd40686e459d355b9bd6e2a27aa48ba0cfa6a5b40

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page