Development¶
Quickstart¶
git clone https://github.com/bparker-e280/netbox-cisco-aci
cd netbox-cisco-aci
python -m venv .venv && source .venv/bin/activate
pip install -e ".[test,docs]"
You also need a working NetBox checkout (4.5.x or 4.6.x). Symlink the
plugin into it or pip install -e from the NetBox venv.
Common loops¶
make lint # ruff + yamllint
make test # pytest with coverage gate
make migrate # apply migrations to dev NetBox
make shell # NetBox shell with plugin pre-loaded
Adding a model¶
- Add the model class under
netbox_cisco_aci/models/<domain>/. - Register it in the domain's
__init__.py. - Generate the migration:
make makemigrations. - Add serializer, view, filterset, form, table, GraphQL type, search index, and navigation entry.
- Add tests under
netbox_cisco_aci/tests/mirroring the package layout. - Update
CHANGELOG.md.
See AGENTS.md for the full conventions list.