Skip to main content

NetBox Auto Cable Label Plugin

Plugin for netbox that allows the automatic generation of the label field content for cables based on a user defined template

  • Free software: Apache-2.0

Compatibility

NetBox Version Plugin Version
4.x 0.1.x

Installing

For adding to a NetBox Docker setup see the general instructions for using netbox-docker with plugins.

Install from PyPI

pip install netbox-cable-labels

Install from GitHub

pip install git+https://github.com/jsenecal/netbox-cable-labels

or by adding to your local_requirements.txt or plugin_requirements.txt (netbox-docker):

netbox-cable-labels

Enable the plugin in /opt/netbox/netbox/netbox/configuration.py, or if you use netbox-docker, your /configuration/plugins.py file :

PLUGINS = [
    'netbox_cable_labels'
]

Configuring

Setup PLUGINS_CONFIG with the following:

PLUGINS_CONFIG = {
    "netbox_cable_labels": {"label_template": "Some Jinja2 template string here"},
}

Please note that the cable instance is passed as cable to the templating engine.

Default configuration

By default, the plugin copies the cable id in the label, prefixed with the pound (#) sign.

"#{{cable.pk}}"

Management command

Using manage.py, you can run the command generate_labels to automatically generate labels on cables that do not already have one set, based on the configured template.

./manage.py generate_labels

Metadata

Release files for netbox-cable-labels 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netbox-cable-labels 0.1.0
File Size Uploaded
netbox_cable_labels-0.1.0.tar.gz 9.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for netbox-cable-labels 0.1.0
File Interpreter ABI Platform
netbox_cable_labels-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.2 kB

Release files / netbox_cable_labels-0.1.0.tar.gz

Download URL netbox_cable_labels-0.1.0.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
268d013912c66dbfbd5470aa1d6d67a5ddb3e72437cbd67cc6d0e6e1b2c07186
BLAKE2b-256 checksum
How to use checksums
83b7ae2c6b3a6493700dbb36708aee29dbc56f5af9fb2a4d9469aa29cc1ee350
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Aug 28, 2025.

Transparency log

Release files / netbox_cable_labels-0.1.0-py3-none-any.whl

Download URL netbox_cable_labels-0.1.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92858f9b232dfd41369471b9f37336204ebc24436a6a7af9dce31bc185e4533c
BLAKE2b-256 checksum
How to use checksums
c377d1de5e081c8836bca430bac34a609a342523a38daaa352b1638b33b290cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Aug 28, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release 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