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',
]

Customize the location of the plugin's menu:

# configuration.py
PLUGINS_CONFIG = {
    'netbox_contract': {
        'top_level_menu': True
    }
}

Customize the internal partie field.
Internal partie reference the legal entity of your organization that is a partie to the contract.

# configuration.py
FIELD_CHOICES = {
    'netbox_contract.Contract.internal_partie': (
        ('Nagravision SARL', 'Nagravision SARL', 'green'),
        ('Nagra USA', 'Nagra USA', 'green'),
        ('Nagra India', 'Nagra India', 'green'),
    )
}

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

Uploaded Source

Built Distribution

netbox_contract-1.0.10-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file netbox-contract-1.0.10.tar.gz.

File metadata

  • Download URL: netbox-contract-1.0.10.tar.gz
  • Upload date:
  • Size: 13.7 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.10.tar.gz
Algorithm Hash digest
SHA256 fea4864c8eb9567b55c1ce1c7156a4966de04b738ebc884399e426f991b7c7d0
MD5 19be735f55a98e9beb3ed9fd2af2c058
BLAKE2b-256 2673cd2e3dacaca1f58a5a6edb2205cec75638e5e7ec1d01b0ce74a9851cc797

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netbox_contract-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 cd14b8c8d4b9c7da45e8a1fe702871ff7520f96553af73307ace03e4c4e691fa
MD5 0813e19d472980ca4bceed744cb20cd8
BLAKE2b-256 2f1c13c9fbaeff34da5aac79d60f454710e0d2aa4ed721b6fb24528ab9959474

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