nac
An umbrella CLI for Network-as-Code workflows, driven by a single nac.yaml
config file.
Every Network-as-Code repository runs the same workflow, regardless of the
architecture: validate the data model, plan, apply and test. Each step uses a
different tool with its own options: terraform or tofu, nac-validate and
nac-test. nac is a single CLI for the whole workflow. The repository is
described once in nac.yaml, and the same commands work on a laptop and in a
CI/CD pipeline:
nac setup # verify prerequisites and report resolved tool versions
nac init # terraform/tofu init
nac validate # nac-validate against the configured data paths
nac plan # terraform/tofu plan -> plan.tfplan
nac apply # apply the saved plan (or interactively, without one)
nac test # nac-test against the configured data/templates/output
nac destroy # destroy the managed infrastructure
Full documentation: https://netascode.cisco.com/docs/tools/nac/overview
How It Works
- One configuration file:
nac.yamldefines where the data model, schema, rules and test templates are located, which Terraform engine to use and which environment variables are required. Every field has a default, so a repository following thedata/andtests/conventions works without anac.yamlat all. - Managed toolchain:
nac-validateandnac-testare used from a local installation if one satisfies the configured version, or run viauvxotherwise. If neitherterraformnortofuis installed,nac setupcan install OpenTofu. - Tested versions: a Network-as-Code Terraform module can declare the
nac-validateandnac-testversions it was tested with innac/manifest.yaml.nacthen uses a compatible version by default and warns about versions outside of the tested range. - Pass-through: arguments not known to
nacare forwarded to the wrapped tool, and the exit code of the wrapped tool is returned.
Installation
nac is published on PyPI as nac-cli; the command it installs is nac.
Install it with uv:
uv tool install nac-cli
See the installation docs
for prerequisites, and usage
and configuration
for the full command and nac.yaml reference.
License
Metadata
Release files for nac-cli 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nac_cli-0.2.0.tar.gz | 104.8 kB | Without provenance | Details for nac_cli-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nac_cli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for nac_cli-0.2.0-py3-none-any.whl |
Total release size: 144.9 kB
Release files / nac_cli-0.2.0.tar.gz
| Download URL | nac_cli-0.2.0.tar.gz |
|---|---|
| Size | 104.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f631ed0660e13260f54883da90c684e8778e047dbe49dfa7a450d72d0d63f37
|
|
BLAKE2b-256 checksum How to use checksums |
a4e3a0ea57164c0cb4031d23d6f59c2e5c27b1a4aab5fd7c57d1a35f6fa6079a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / nac_cli-0.2.0-py3-none-any.whl
| Download URL | nac_cli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 40.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
469c41c39c3e79bc032d77585eec01e428811f4c36b73f555a3b98d3a68c89cc
|
|
BLAKE2b-256 checksum How to use checksums |
1c8c9a83549cb439eb74a811ab797fd6a56f094e9f137fba68f7404cd923bbd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for nac-cli 0.2.0
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.