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.5.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

netbox_contract-1.0.5-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netbox_contract-1.0.5.tar.gz
  • Upload date:
  • Size: 12.9 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.5.tar.gz
Algorithm Hash digest
SHA256 b6b3d9af088837d1f2bd6b44b42afa1778c466fbfbb29d58ddf7d66027ea4269
MD5 a95255735a394dbb4e862d6e63848285
BLAKE2b-256 a427e5d651a3851239ca3e85c98c8943abec441632d94b0091951eb05751db78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netbox_contract-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a1bc033b7e108c7779bb32b15cce6b638702571dc72db2b4ddafe8499f234f9f
MD5 1abd66904cd3883a0909977bd25c2e2d
BLAKE2b-256 cd9455005d9213eacbdb11d7a9f8f558eb0bb70853fe4e0230b1238ed6f197a7

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