Manage site, circuit and device diagrams and documents in Netbox
Project description
Netbox Documents Plugin
A plugin designed to faciliate the storage of site, circuit and device specific documents within NetBox
Note: Netbox v3.2+ is required. This plugin will not work on an earlier release of Netbox.
Installation
A working installation of Netbox 3.2+ is required - see official documentation.
Package Installation from PyPi
Activate your virtual env and install via pip:
$ source /opt/netbox/venv/bin/activate
(venv) $ pip install netbox-documents
To ensure the Netbox Documents plugin is automatically re-installed during future upgrades, add the package to your local_requirements.txt :
# echo netbox-documents >> local_requirements.txt
Enable the Plugin
In the Netbox configuration.py configuration file add or update the PLUGINS parameter, adding netbox_documents:
PLUGINS = [
'netbox_documents',
]
(Optional) Add or update a PLUGINS_CONFIG parameter in configuration.py to configure plugin settings. Options shown below are the configured defaults:
PLUGINS_CONFIG = {
'netbox_documents': {
# Enable the management of site specific documents (True/False)
'enable_site_documents': True,
# Enable the management of circuit specific documents (True/False)
'enable_circuit_documents': True,
# Enable the management of device specific documents (True/False)
'enable_device_documents': True,
# Enable the global menu options (True/False)
'enable_navigation_menu': True,
# Location to inject the document widget in the site view (left/right)
'site_documents_location': 'left',
# Location to inject the document widget in the device view (left/right
'circuit_documents_location': 'left',
# Location to inject the document widget in the circuit view (left/right
'device_documents_location': 'left'
}
}
(Optional) Add or replace the built-in Document Type choices via Netbox's FIELD_CHOICES configuration parameter:
FIELD_CHOICES = {
'netbox_documents.DocTypeChoices.site+': (
('mydocument', 'My Custom Site Document Type', 'green'),
),
'netbox_documents.DocTypeChoices.device+': (
('mydocument', 'My Custom Device Document Type', 'green'),
),
'netbox_documents.DocTypeChoices.circuit+': (
('mydocument', 'My Custom Circuit Document Type', 'green'),
)
}
Available
Apply Database Migrations
Apply database migrations with Netbox manage.py:
(venv) $ python manage.py migrate
Restart Netbox
Restart the Netbox service to apply changes:
sudo systemctl restart netbox
Screenshots
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-documents-0.3.tar.gz.
File metadata
- Download URL: netbox-documents-0.3.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd35e2d376a34ed30b54598b8dd217335bf4424f67c81ba258881d71c0f6df72
|
|
| MD5 |
4db5aa311a9b48f4ccf1822e900491d2
|
|
| BLAKE2b-256 |
3d7e1cd3344c7fdd3562202326213d1fc4c3b42a74884aeee0e7d39f3644c24f
|
File details
Details for the file netbox_documents-0.3-py3-none-any.whl.
File metadata
- Download URL: netbox_documents-0.3-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cce677ee2adf81ec7d33153c8cb07186e5efcc59627126313500c189f14c6877
|
|
| MD5 |
af31ebca3338f59836de1c72e60230dd
|
|
| BLAKE2b-256 |
937cc05e1c581eba42b0813f217ec7aaaad77d64c3e727b99a4b71fdfa0dac67
|