Overview
This is a netbox plugin which offers a physical view of a device's module bays, onboard interfaces, frontports and backports.
When a module has been installed into a module bay the rendering will then display the modules port layout in the place where the module bay is defined. This should work recursively if a module also has a module bay defined in it.
The plugin provides tab on a device type that provides the rendering of the layout module bays, onboard interfaces, frontports and backports as they are physically located.
It also has a tab showing the same layout specifically for module types.
This plugin provides a WYSIWYG interface for editing the design of the grid layout on the device types object and the modules type object. the WYSIWYG display and editing interface will use Javascript and CSS to render and edit.
The information defining the layout is stored in json in the database.
On the device page when displaying the layout rendering including the installed modules and nested modules, the interface and port details will be reflected in the rendering. Green being connected and a light grey being not connected and amber indicating a naming issue.
Installation
Currently I have not made a pypi module and its just in dev mode. I installed it using the following and might be specific to my environment:
gh repo clone dionrowney/netbox-devicelayout
cd /opt/netbox/netbox/
source /opt/netbox/netbox/venv/bin/activate
pip install -e /opt/netbox/netbox-devicelayout --no-deps
python manage.py migrate
source /opt/netbox/netbox/venv/bin/activate
python3 manage.py collectstatic
chmod -R 775 /opt/netbox/netbox-devicelayout/
chown -R root:root /opt/netbox/netbox-devicelayout/
Example Screenshots
Layout view
Editor
Metadata
Release files for netbox-devicelayout 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| netbox_devicelayout-0.1.1.tar.gz | 50.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| netbox_devicelayout-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 104.9 kB
Release files / netbox_devicelayout-0.1.1.tar.gz
| Download URL | netbox_devicelayout-0.1.1.tar.gz |
|---|---|
| Size | 50.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e6e9c186b1708d4b92bce278e41a4814090d0dc47ee4cc0406c21c44b528d9b
|
|
BLAKE2b-256 checksum How to use checksums |
6f71a51b717a85327049d4b1b2f4b94e4d79381da773bdbf50177e116a5d1bdf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.13
|
Release files / netbox_devicelayout-0.1.1-py3-none-any.whl
| Download URL | netbox_devicelayout-0.1.1-py3-none-any.whl |
|---|---|
| Size | 54.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be7b4c579c773565bb4f52c1ce9aec9d20f6ccc38700754479eb48e7ebbc1430
|
|
BLAKE2b-256 checksum How to use checksums |
faad259be3214d846a0bb978e1618dda19c1f2283914738e935babe7cd7b01c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.13
|