netbox-nso-plugin
NetBox 4.6 plugin that integrates NetBox with Cisco NSO via the nso-adapter REST API — a bidirectional sync: device state is imported into NetBox, and operator-accepted values become intent that is applied back to the device through NSO (reconcile-mode commits).
Features
- Mark NetBox devices as NSO-managed and choose the managed scopes (interfaces, routing, VLANs/L2, SNMP, logging, …) per device.
- Device NSO tab: counts-first category summaries with lazy row expansion, a merged per-interface table (enabled / description / IPs / MTU / switchport), pagination + search, and inline editing of operator-owned values.
- Read mirrors for: interface attributes/IPs/MTU, VLAN database, switchport, SVI/IRB,
dot1q subinterfaces, L2 services (epipe/vpls SAPs), LACP/LAG, IS-IS (incl. levels,
segment-routing, Flex-Algo), OSPF, BGP (peers/AFs/templates), route policies,
redistribution, static routes, BFD, SNMP (secret-safe), logging hosts — materialised
into native NetBox / netbox-routing objects with
NSO*Statestatus overlays and clobber-safe 3-way merge. - Accept → Apply write path: Accept promotes a value to NetBox-owned intent; one
device Apply commits all pending scopes via the NSO
*-reconcilerservices, with a two-panel preview (intent summary + native device diff). Greenfield writes for operator-created routes, VLANs, policies, SVIs, subinterfaces and more. - Drift handling: value-aware drift display, plus intent split-brain detection (orphaned and partial) with one-click re-sync of the adapter intent mirror — never touches the device.
- Adapter actions from the tab: Sync, Detect drift, Test connection, Apply, with job polling.
- Device onboarding NetBox → NSO (create node, fetch host keys, sync-from) from the NSO Devices dashboard.
- Exposes
NSODeviceManagementat/api/plugins/nso/device-management/for the adapter's self-healing reconcile path.
Requirements
- NetBox ≥ 4.6.0
- Python ≥ 3.12
Installation
pip install netbox-nso-plugin
Add to PLUGINS in configuration.py:
PLUGINS = ["netbox_nso_plugin"]
PLUGINS_CONFIG = {
"netbox_nso_plugin": {
"adapter_url": "https://nso-adapter.example.net",
"adapter_token": "<bearer token>",
}
}
Run migrations:
python manage.py migrate netbox_nso_plugin
Programmatic writers must wrap each create, save, or delete of a managed intent model in
intent_transaction(). The renderer write, revision bump, and intent outbox entry must
commit together. The mutation footprint must be complete before the first write.
QuerySet.update(), bulk_update(), and bulk_create() bypass the save signals that schedule
the outbox. Programmatic intent writes must not use them unless an outbox-aware service runs
inside transaction.atomic(). Reconcile and drain bookkeeping writes are exempt when they do
not change operator intent.
Development
See .devcontainer/ for the Docker-based development environment.
Release files for netbox-nso-plugin 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| netbox_nso_plugin-1.3.1.tar.gz | 1.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| netbox_nso_plugin-1.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.1 MB
Release files / netbox_nso_plugin-1.3.1.tar.gz
| Download URL | netbox_nso_plugin-1.3.1.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7516d9f6568b97d1c8b16faf0d5740657a03f76e78e779a8d649cb3d540457d4
|
|
BLAKE2b-256 checksum How to use checksums |
bf8578dc0c097e46e5b2094666fde4c51fda362b4112a92961e24461dbbe20e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency logRelease files / netbox_nso_plugin-1.3.1-py3-none-any.whl
| Download URL | netbox_nso_plugin-1.3.1-py3-none-any.whl |
|---|---|
| Size | 1.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
001ae15c25b05c0f283936e17ce43a1284292e60d7d06c9b96aedd775de84d27
|
|
BLAKE2b-256 checksum How to use checksums |
19a634b5a2f5bd21b68a2ca9fa07111f49dc1fb72474806e9318f78bc6082706
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency log