Skip to main content

Netbox plugin for module swapping.

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.0 or higher.
  • Python version 3.10.12 or higher.

Version 1.1.0

Fixed a an error that occured during pip installation - setup.py configuration had an error in it

Version 1.2.0

Fixed views.py which used old names for templates

Version 1.3.0

Fixed problem where deleting binding would end in an error

Version 1.4.0

Fixed some more problems in views.py

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

after this just follow the same steps from Github installation

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

module_swap-1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

module_swap-1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file module_swap-1.0.tar.gz.

File metadata

  • Download URL: module_swap-1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for module_swap-1.0.tar.gz
Algorithm Hash digest
SHA256 87c3fa78da53ed7659a8a2e911f8be933a428a865e7fff0a3f83e3d9e65ae74f
MD5 5b5eed047c97d18a88d8d149bec17f3a
BLAKE2b-256 4c82473051bbd61fb059c9dc087f0843281e9e69359aa96cf9d8f48ec2331366

See more details on using hashes here.

File details

Details for the file module_swap-1.0-py3-none-any.whl.

File metadata

  • Download URL: module_swap-1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for module_swap-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1a45305b4e1ea4993a1c1523f1997fa42a446b5059d6f19b591acf97171a30c
MD5 f6194e096b96044ca657c2d86d14ea89
BLAKE2b-256 2442de58c9e61250478d32a6739f7ea3e126256144fa1b3e7ad68440c2905e9b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page