netbox-circuit-prefix-link
A NetBox plugin that links Circuits to Prefixes.
- One Circuit can have many linked Prefixes.
- Each Prefix can be linked to at most one Circuit.
- The link is surfaced as a panel on Circuit, Prefix, and IPAddress detail pages.
Compatible with NetBox 4.5.x and NetBox 4.6.x. Requires Python 3.12+.
Install
pip install netbox-circuit-prefix-link
Then in your NetBox configuration.py:
PLUGINS = [
'netbox_circuit_prefix_link',
]
Run migrations:
python manage.py migrate netbox_circuit_prefix_link
Configuration
You can control which columns appear in the Circuit and Prefix detail-page panels via
PLUGINS_CONFIG in your NetBox configuration.py. Each panel takes a flat, ordered list of
field names:
PLUGINS_CONFIG = {
'netbox_circuit_prefix_link': {
'circuit_panel': ['description', 'utilization'], # columns in the "Linked Prefixes" table
'prefix_panel': ['provider', 'type'], # rows in the "Circuit Link" panel
},
}
Notes:
- Defaults (used when a key is omitted):
circuit_panel→['description', 'utilization'];prefix_panel→['provider', 'type']. - The identifying link is always shown first: the prefix on the Circuit panel, the Circuit on the Prefix panel — you do not list it.
- On the Circuit panel, the per-row edit/unlink actions are always shown last and are automatically hidden for users without change/delete permission.
- Unknown field names are ignored (and a warning is logged), so a typo won't break the page.
- Columns render in the order listed.
Available columns — Circuit panel (circuit_panel)
Each resolves from the linked Prefix:
| Name | Renders |
|---|---|
description |
The prefix's description |
utilization |
Colored usage bar (get_utilization()) |
status |
Colored status badge |
vlan |
Assigned VLAN (linkified) |
vrf |
VRF (linkified) |
tenant |
Tenant (linkified) |
role |
Prefix role (linkified) |
Available columns — Prefix panel (prefix_panel)
Each resolves from the linked Circuit:
| Name | Renders |
|---|---|
provider |
Circuit provider (linkified) |
provider_account |
Provider account (linkified) |
type |
Circuit type (linkified) |
status |
Colored status badge |
tenant |
Tenant (linkified) |
install_date |
Install date |
termination_date |
Termination date |
commit_rate |
Commit rate (Kbps) |
description |
Circuit description |
REST API
Endpoint: /api/plugins/circuit-prefix-link/circuit-prefixes/
Supports the standard NetBox CRUD plus filtering by circuit_id and prefix_id.
UI
- Circuit detail page — "Linked Prefixes" panel with an Add Prefix button.
- Prefix detail page — "Circuit Link" panel showing the associated Circuit (if any), with Link / Edit / Unlink buttons.
- IPAddress detail page — Read-only panel showing the Circuit of any parent Prefix that has a link.
- Circuits list view — opt-in "Linked Prefixes" column showing the linked prefixes as a comma-separated list of links. Enable it via the table configuration (gear icon) → add Linked Prefixes under Selected Columns.
Permissions
Standard Django/NetBox model permissions:
netbox_circuit_prefix_link.view_circuitprefixnetbox_circuit_prefix_link.add_circuitprefixnetbox_circuit_prefix_link.change_circuitprefixnetbox_circuit_prefix_link.delete_circuitprefix
Panel content is filtered with NetBox's object-permission restrict() — users only see Circuits and Prefixes they have view permission on.
Metadata
Release files for netbox-circuit-prefix-link 0.1.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_circuit_prefix_link-0.1.2.tar.gz | 26.1 kB | Without provenance | Details for netbox_circuit_prefix_link-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| netbox_circuit_prefix_link-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for netbox_circuit_prefix_link-0.1.2-py3-none-any.whl |
Total release size: 57.6 kB
Release files / netbox_circuit_prefix_link-0.1.2.tar.gz
| Download URL | netbox_circuit_prefix_link-0.1.2.tar.gz |
|---|---|
| Size | 26.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fce69fb36a93cfaed29d7c7075e668e1391b808ea4740703796777f6cd45fbbd
|
|
BLAKE2b-256 checksum How to use checksums |
f287a88ce9025ebfe7506045c2b7240cf19371df1184b61564690289060167d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / netbox_circuit_prefix_link-0.1.2-py3-none-any.whl
| Download URL | netbox_circuit_prefix_link-0.1.2-py3-none-any.whl |
|---|---|
| Size | 31.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ad0e9b32a3ca21239a147eaa6fc1660b747d0048592ac817d07f10a602b2a08
|
|
BLAKE2b-256 checksum How to use checksums |
ad49c6ac5a08ee6e1674c8179c1c245c01ed9bc9fe99b79dd4fcbc26bf8e0a6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for netbox-circuit-prefix-link 0.1.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.
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.