Skip to main content

Contract management plugin for Netbox

Project description

Contract pluggin

Overview

The pluggin adds contracts and invoices model to Netbox.
It allows to register contract with objects.
Add invoices to contracts.

Installation

Activate venv

To ensure our plugin is accessible to the NetBox installation, we first need to activate the Python virtual environment that was created when we installed NetBox. To do this, determine the virtual environment's path (this will be /opt/netbox/venv/ if you use the documentation's defaults) and activate it:

$ source /opt/netbox/venv/bin/activate

Install the package

$ python3 -m pip install netbox_contract

Configure NetBox

Finally, we need to configure NetBox to enable our new plugin. Over in the NetBox installation path, open netbox/netbox/configuration.py and look for the PLUGINS parameter; this should be an empty list. (If it's not yet defined, go ahead and create it.) Add the name of our plugin to this list:

# configuration.py
PLUGINS = [
    'netbox_contract',
]

Run database migrations

(venv) $ cd /opt/netbox/netbox/
(venv) $ python3 manage.py migrate

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

netbox_contract-1.0.6.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

netbox_contract-1.0.6-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file netbox_contract-1.0.6.tar.gz.

File metadata

  • Download URL: netbox_contract-1.0.6.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for netbox_contract-1.0.6.tar.gz
Algorithm Hash digest
SHA256 9655681a2f78e74eabab8a4a0bcc1177ac033e9a53f0850632f655dcda6cb8a7
MD5 92721bfcadc3775695bfc59b6b4b23a4
BLAKE2b-256 43055b10ccd336fbad2ce4037eb98ecdd41865bfbcb46c738f8e8db7431f6f27

See more details on using hashes here.

File details

Details for the file netbox_contract-1.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_contract-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 430b24e70b50fbcd8afff571655d8b80fdcdd60c4d59fb9a397894c127a3783b
MD5 9dbfa3039922edf0e2cced5ad826d138
BLAKE2b-256 6e65ccc9106f595bc2a1874334b318bbe2ab7a18ba693ec5fef7cc70b66c2e9e

See more details on using hashes here.

Supported by

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