Skip to main content

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"]

# PLUGINS_CONFIG = {
#   "netbox_tunnels": {
#     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.

Metadata

Release files for netbox-tunnels-plugin 0.3.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netbox-tunnels-plugin 0.3.6
File Size Uploaded
netbox-tunnels-plugin-0.3.6.tar.gz 13.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for netbox-tunnels-plugin 0.3.6
File Interpreter ABI Platform
netbox_tunnels_plugin-0.3.6-py3-none-any.whl Python 3 none any Details

Total release size: 38.0 kB

Release files / netbox-tunnels-plugin-0.3.6.tar.gz

Download URL netbox-tunnels-plugin-0.3.6.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f7e4a088e649839e828ba252d75afda524b08c33bd5c876580714a78c508b150
BLAKE2b-256 checksum
How to use checksums
753d341b097a7c6d51d19469c4ee18745d3f7f56367f1e6512846c6634650465
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.7.3 Darwin/19.5.0

Release files / netbox_tunnels_plugin-0.3.6-py3-none-any.whl

Download URL netbox_tunnels_plugin-0.3.6-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9119228ac037130c1ecaa960d197c8f39b7e09d5e82d31b4080fb532bd0205df
BLAKE2b-256 checksum
How to use checksums
95ea376c950968aa72ecdc4cd7e9de9711b5755b4a5278d1b008838e8eecfc75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.7.3 Darwin/19.5.0

Release history Release notifications | RSS feed

This release

0.3.6 This release

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page