Skip to main content

A plugin for Netbox to document network tunnels

Project description

Netbox Tunnels Plugin

Build Status

PyPI version

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +NOTE: Please be aware that this plugin is still a work in progress and should not be used for production work at this time!+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

A plugin for NetBox to support documentation of network tunneling protocols, ie IPsec, GRE, L2TP, etc.

Installation

The plugin is available as a Python package in pypi and can be installed with pip

pip install netbox-tunnels-plugin

Once installed, the plugin needs to be enabled in your configuration.py

# In your configuration.py
PLUGINS = ["netbox-tunnels-plugin"]

# PLUGINS_CONFIG = {
#   "netbox-tunnels-plugin": {
#     ADD YOUR SETTINGS HERE
#   }
# }

Contributing

Pull requests are welcomed and automatically built and tested against multiple version of Python and multiple version of NetBox through TravisCI.

The project is packaged with a light development environment based on docker-compose to help with the local development of the project and to run the tests within TravisCI.

The project is following Network to Code software development guideline and is leveraging:

  • Black, Pylint, Bandit and pydocstyle for Python linting and formatting.
  • Django unit test to ensure the plugin is working properly.

CLI Helper Commands

The project is coming with a CLI helper based on invoke to help setup the development environment. The commands are listed below in 3 categories dev environment, utility and testing.

Each command can be executed with invoke <command>. All commands support the arguments --netbox-ver and --python-ver if you want to manually define the version of Python and NetBox to use. Each command also has its own help invoke <command> --help

Local dev environment

  build            Build all docker images.
  debug            Start NetBox and its dependencies in debug mode.
  destroy          Destroy all containers and volumes.
  start            Start NetBox and its dependencies in detached mode.
  stop             Stop NetBox and its dependencies.

Utility

  cli              Launch a bash shell inside the running NetBox container.
  create-user      Create a new user in django (default: admin), will prompt for password.
  makemigrations   Run Make Migration in Django.
  nbshell          Launch a nbshell session.

Testing

  tests            Run all tests for this plugin.
  pylint           Run pylint code analysis.
  pydocstyle       Run pydocstyle to validate docstring formatting adheres to NTC defined standards.
  bandit           Run bandit to validate basic static code security analysis.
  black            Run black to check that Python files adhere to its style standards.
  unittest         Run Django unit tests for the plugin.

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-tunnels-plugin-0.3.3.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

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

netbox_tunnels_plugin-0.3.3-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file netbox-tunnels-plugin-0.3.3.tar.gz.

File metadata

  • Download URL: netbox-tunnels-plugin-0.3.3.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.3 Darwin/19.4.0

File hashes

Hashes for netbox-tunnels-plugin-0.3.3.tar.gz
Algorithm Hash digest
SHA256 6079ddfa8a89c375eb3ad857b828ed484ee6ed55e8f6d26c4bb7a4b2ab89cc71
MD5 4931b9f48348caba42a329a14f4f007e
BLAKE2b-256 c7a3a83b3b046621e60f85e957ab5e0c561681b87e0b863d7ca73fb7a1d1b385

See more details on using hashes here.

File details

Details for the file netbox_tunnels_plugin-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_tunnels_plugin-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c75a1a7052517f4590d668176e655f9c5381aaca1b9fa856e4a4c97793f273be
MD5 62da8cb60e53f8d6674cb2fc0f69738d
BLAKE2b-256 ab1634f346b2c12e962db7dc58eb9d7d574b67400218e409aaa446a86405d3ae

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