A NetBox plugin to manually bind modules with inventory items.
Project description
Module Inventory Binder
Module Inventory Binder is a plugin for NetBox that facilitates the binding of modules to inventory items. This plugin simplifies the management of relationships between modules and their corresponding inventory items, ensuring better visibility and device management.
Features
- One-to-One Binding: Establish a unique relationship between a module and an inventory item.
- CRUD Operations: Create, read, update, and delete bindings between modules and inventory items.
- Automatic Inventory Item Creation: Automatically creates or links existing inventory items when new modules are added.
- Safe Deletion: Deletes associated inventory items when a module is deleted.
- Integration with NetBox UI: Seamlessly integrates into NetBox's main menu for easy access to binding functionalities.
Requirements
- NetBox version
3.0.0or higher. - Python version
3.10.12or higher.
Installation with GIT
Step 1: Clone the Repository into plugins directory in your netbox instance
git clone https://github.com/vubeckubec/module_inventory_binder.git
Step 2: Add the plugin into PLUGINS in configuration.py
PLUGINS = [
'module_inventory_binder',
# Other plugins...
]
Step 3: Apply migrations(don't forget activating venv)
python manage.py migrate module_inventory_binder
Step 4: Run netbox(for example)
python manage.py runserver
Installion with PIP(don't forget activating venv)
This plugin is also available on PYPL so you can install it with PIP
pip install module_inventory_binder
Troubleshooting tip
If you are encountering an error when creating a new bind with null values you need to manually delete custom field from the ModuleInventoryBinding table here is how to do it. This is an error in current version of the plugin i will try to fix it in the next version.
Step 1: Open postgres in command line
sudo -u postgres psql
Step 2: Switch to your DB
\c your_db_name
Step 3: Delete the custom field
ALTER TABLE module_inventory_binder_moduleinventorybinding
DROP COLUMN custom_field_data;
Project details
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 module-inventory-binder-1.0.0.tar.gz.
File metadata
- Download URL: module-inventory-binder-1.0.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
114c7065eb181c782f2dd80b27ffbc82d7c898780cb82063a84c877af7fcd252
|
|
| MD5 |
5af33d308831b68898220cf8b1ad6975
|
|
| BLAKE2b-256 |
cf4f4352332ba1a882a42fb1676f4d24caf280faebb5d7dc79ce437a06f3f063
|
File details
Details for the file module_inventory_binder-1.0.0-py3-none-any.whl.
File metadata
- Download URL: module_inventory_binder-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04ef6c2a10b484ea1a86d641bfa70de5afb4b8de9f3f60a7730c561f333cbd43
|
|
| MD5 |
c2449228294dff5bc78e1d769e4f0906
|
|
| BLAKE2b-256 |
b563ce8a2dc255ff95fa2e959401da48f23338b5fd863ac907ead3e1f03cca02
|