Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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:
- None

Javascript:
- 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
```