NetBox plugin for automatic cable label generation
Project description
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
cableto 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file netbox_cable_labels-0.1.0.tar.gz.
File metadata
- Download URL: netbox_cable_labels-0.1.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
268d013912c66dbfbd5470aa1d6d67a5ddb3e72437cbd67cc6d0e6e1b2c07186
|
|
| MD5 |
3e32ebfcad5077a0c26b22aac126c481
|
|
| BLAKE2b-256 |
83b7ae2c6b3a6493700dbb36708aee29dbc56f5af9fb2a4d9469aa29cc1ee350
|
Provenance
The following attestation bundles were made for netbox_cable_labels-0.1.0.tar.gz:
Publisher:
publish.yml on jsenecal/netbox-cable-labels
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
netbox_cable_labels-0.1.0.tar.gz -
Subject digest:
268d013912c66dbfbd5470aa1d6d67a5ddb3e72437cbd67cc6d0e6e1b2c07186 - Sigstore transparency entry: 442819676
- Sigstore integration time:
-
Permalink:
jsenecal/netbox-cable-labels@30d73e0c195b7ca10759aaf100631078fdfd92ad -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/jsenecal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@30d73e0c195b7ca10759aaf100631078fdfd92ad -
Trigger Event:
push
-
Statement type:
File details
Details for the file netbox_cable_labels-0.1.0-py3-none-any.whl.
File metadata
- Download URL: netbox_cable_labels-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92858f9b232dfd41369471b9f37336204ebc24436a6a7af9dce31bc185e4533c
|
|
| MD5 |
942dfe788ac014ff1bb7c42d2c139a74
|
|
| BLAKE2b-256 |
c377d1de5e081c8836bca430bac34a609a342523a38daaa352b1638b33b290cf
|
Provenance
The following attestation bundles were made for netbox_cable_labels-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on jsenecal/netbox-cable-labels
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
netbox_cable_labels-0.1.0-py3-none-any.whl -
Subject digest:
92858f9b232dfd41369471b9f37336204ebc24436a6a7af9dce31bc185e4533c - Sigstore transparency entry: 442819692
- Sigstore integration time:
-
Permalink:
jsenecal/netbox-cable-labels@30d73e0c195b7ca10759aaf100631078fdfd92ad -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/jsenecal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@30d73e0c195b7ca10759aaf100631078fdfd92ad -
Trigger Event:
push
-
Statement type: