Skip to main content

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*State status 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 *-reconciler services, 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 NSODeviceManagement at /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.

Download files

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

Source Distribution

netbox_nso_plugin-1.3.0.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

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

netbox_nso_plugin-1.3.0-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file netbox_nso_plugin-1.3.0.tar.gz.

File metadata

  • Download URL: netbox_nso_plugin-1.3.0.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for netbox_nso_plugin-1.3.0.tar.gz
Algorithm Hash digest
SHA256 ee14c2317bbf78143606c80ef974cc0c25bf89d5d87229650759fe4ae41bd5ac
MD5 e77f82ea5cf242c188b744abd43df183
BLAKE2b-256 19e53bcfbb79c24188b776f49c5cd717eedaaca13fadd89133855afc4fa2ebf2

See more details on using hashes here.

Provenance

The following attestation bundles were made for netbox_nso_plugin-1.3.0.tar.gz:

Publisher: release.yaml on marcinpsk/netbox-nso-plugin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file netbox_nso_plugin-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_nso_plugin-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4b4a209338ee3437ac3e216e0ead3585eacb0d018ac5dc7ea653769428366c1
MD5 cfe70829363a398bd4b4cb6dec000375
BLAKE2b-256 794cceecfa0bdd7d31582b586136891349030ad3c35c4a00c584a9bac63badbd

See more details on using hashes here.

Provenance

The following attestation bundles were made for netbox_nso_plugin-1.3.0-py3-none-any.whl:

Publisher: release.yaml on marcinpsk/netbox-nso-plugin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

0.3.0

2 files

0.2.0

2 files

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