Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/netbox-community/netbox-reorder-rack
NetBox plugin to allow users to reorder devices within a rack using a drag and drop UI.
https://github.com/netbox-community/netbox-reorder-rack
netbox netbox-cloud netbox-plugin
Last synced: about 2 months ago
JSON representation
NetBox plugin to allow users to reorder devices within a rack using a drag and drop UI.
- Host: GitHub
- URL: https://github.com/netbox-community/netbox-reorder-rack
- Owner: netbox-community
- License: apache-2.0
- Created: 2024-03-13T12:00:11.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-05-28T14:52:03.000Z (7 months ago)
- Last Synced: 2024-05-29T06:25:55.174Z (7 months ago)
- Topics: netbox, netbox-cloud, netbox-plugin
- Language: Python
- Homepage:
- Size: 1.46 MB
- Stars: 22
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Netbox Reorder Rack Plugin
![Version](https://img.shields.io/pypi/v/netbox-reorder-rack) ![Downloads](https://img.shields.io/pypi/dm/netbox-reorder-rack)
Allow the ability to reorder rack units in NetBox using a drag and drop interface.
![Reorder Rack](docs/img/netbox-reorder-rack.gif)
> If there are any issues feel free to create an [Issue](https://github.com/minitriga/netbox-reorder-rack/issues) or feel free to contact me directly on Slack in the [NetDev](https://netdev.chat/) community.
## Installation
**_NOTE:_** For docker please see: [Docker install](https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins)
The plugin is available as a Python package and can be installed with pip.
Run the following commands to install the required package after activating the virtual environment:
```shell
source /opt/netbox/venv/bin/activate
pip install netbox-reorder-rack
```To ensure the plugin is automatically re-installed during future upgrades, create a file named `local_requirements.txt` (if it does not exist already) in the NetBox root directory (alongside `requirements.txt`) and list the `netbox-reorder-rack` package:
```shell
echo netbox-reorder-rack >> local_requirements.txt
```Once installed, the plugin needs to be enabled in your `configuration.py`
```python
# In your configuration.py
PLUGINS = ["netbox_reorder_rack"]
```You may need to collect static files and restart NetBox for the plugin to be properly installed.
```shell
python3 manage.py collectstatic --no-input
systemctl restart netbox
```## Compatibility Matrix
| netbox version | plugin version |
| -------------- | ----------------------------- |
| >= 4.0.0 < 4.1.0 | >= v1.1.3 |
| <= 4.0.0 | = v1.0.0 |## Dependencies
Python:
- NoneJavascript:
- Gridstack (Currently running same versions as Netbox)
- Bootstrap (Currently running same versions as Netbox)### Update
To update the plugin, you need to update the package and restart NetBox.
```shell
source /opt/netbox/venv/bin/activate
pip install netbox-reorder-rack
python3 manage.py collectstatic --no-input
systemctl restart netbox
```