NetBox Diagram
Automatically generated, up-to-date network diagrams from NetBox
📑 Table of Contents
Overview
netbox_diagram is a plugin for NetBox that enables the creation and management of network diagrams using NetBox devices and circuits. It renders physical and logical interconnections (e.g., cables, circuits) between devices based on their coordinates and metadata.
Key Features
- Group devices into diagrams
- Automatically render cables and circuits
- Position devices using X/Y coordinates
- Asynchronous updates for fast performance
- Toggle grid and link labels for clarity
❗ Limitations:
- No support for virtual machines
- Power connections and patch panels are not visualized
For more advanced or flexible diagramming, consider:
🔧 Installation
1. Install via pip
pip install netbox_diagram
2. Enable the plugin in configuration.py
PLUGINS = [
'netbox_diagram',
# other plugins...
]
3. Apply migrations and collect static files
python3 manage.py migrate
python3 manage.py collectstatic
4. Restart NetBox
sudo systemctl restart netbox
🚀 Quick Demo
Want to try it out quickly? Use the provided demo script to set up a sample environment. A running Netbox instance is required though!
This will:
- Create 5 devices
- Connect 2 devices via a circuit
- Simulate patch panels via front-back port connections
- Connect 4 devices to one central device
- Generate a diagram including all devices
Run the demo
📌 Requires a running NetBox instance with API access enabled.
Update NETBOX_HOST and API_TOKEN to match your environment. (it obviously should point to your Netbox and use a API Token you've generated). The script itself has no external dependencies, you can run it straight away.
export NETBOX_HOST="172.16.123.1:8001"
export API_TOKEN="your_token_here"
python3 setup_demo.py
📸 Screenshots
Diagram overview with name, description, and associated objects:
Final generated diagram (patch panels not shown):
Diagram with link labels disabled:
Diagram with grid enabled:
New "Diagrams" tab on Device and Circuit detail pages:
Metadata
Release files for netbox-diagram 0.0.2
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 |
|---|---|---|---|---|
| netbox_diagram-0.0.2.tar.gz | 131.4 kB | With provenance | Details for netbox_diagram-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| netbox_diagram-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for netbox_diagram-0.0.2-py3-none-any.whl |
Total release size: 272.6 kB
Release files / netbox_diagram-0.0.2.tar.gz
| Download URL | netbox_diagram-0.0.2.tar.gz |
|---|---|
| Size | 131.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45e3fb0312b9b9cae953fb64f31fa27eacda01c826ecf12dfd34c922f76e8586
|
|
BLAKE2b-256 checksum How to use checksums |
341a6661f2fdd40a8515c5e9fc3e8bdebe9d137ee5391a0fb327addc3f525a52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Oct 7, 2025.
Transparency logRelease files / netbox_diagram-0.0.2-py3-none-any.whl
| Download URL | netbox_diagram-0.0.2-py3-none-any.whl |
|---|---|
| Size | 141.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e480219591dee5a2795b8ca932f615fa69d4a9c375ae971d20a9d63c92b5bacc
|
|
BLAKE2b-256 checksum How to use checksums |
8b9b81b3173b7763e1185620fcd7bf2c6d6e693aa8408165be8656c27fecb6bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Oct 7, 2025.
Transparency logSecurity for netbox-diagram 0.0.2
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for netbox_diagram-0.0.2.tar.gz
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 Oct 7, 2025.
Transparency logA 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.