Skip to main content

NetBox plugin that links Circuits to Prefixes.

Project description

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.

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

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.

Permissions

Standard Django/NetBox model permissions:

  • netbox_circuit_prefix_link.view_circuitprefix
  • netbox_circuit_prefix_link.add_circuitprefix
  • netbox_circuit_prefix_link.change_circuitprefix
  • netbox_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.

Project details


Download files

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

Source Distribution

netbox_circuit_prefix_link-0.1.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

netbox_circuit_prefix_link-0.1.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page