Skip to main content

Easily import Device and Module types from GitHub repo

Project description

Netbox DeviceType/ModuleType Import Plugin

NetBox plugin for easy import DeviceType and ModuleType from NetBox Device Type Library. This is the continuation of the Netbox DeviceType Import Plugin app.

Description

The plugin uses GitHub GraphQL API to load DeviceType and ModuleType from NetBox Device Type Library. The plugin loads only file tree representation from GitHub repo and shows it as a table with vendor and model columns. DeviceType definitions files are loaded when you try to import selected models. To use GraphQL API you need to set GitHub personal access token in plugin settings. How to create the token, see "Creating a personal access token."

Compatibility

NetBox Version Plugin Version
3.4.x 0.0.x
3.5.x 0.1.x
3.6.x 0.2.x
3.7.x 0.3.x
4.0.x 0.4.x
4.1.x 0.5.x
4.2.x 0.6.x

Installation

  • Install NetBox as per NetBox documentation
  • Add to local_requirements.txt:
    • netbox-metatype-importer
  • Install requirements: ./venv/bin/pip install -r local_requirements.txt
  • Add to PLUGINS in NetBox configuration:
    • 'netbox_metatype_importer',
  • Run migration: ./venv/bin/python netbox/manage.py migrate

Configuration

The following options are available in the configuration file:

  • branch
    • Type: String
    • Description: Branch of the NetBox Device Type Library repo
    • Default: master
  • github_token
    • Type: String
    • Description: GitHub personal access token
  • repo
    • Type: String
    • Description: Name of the NetBox Device Type Library repo
    • Default: devicetype-library
  • repo_owner
    • Type: String
    • Description: Owner of the NetBox Device Type Library repo
    • Default: netbox-community

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_metatype_importer-0.6.0.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

netbox_metatype_importer-0.6.0-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file netbox_metatype_importer-0.6.0.tar.gz.

File metadata

  • Download URL: netbox_metatype_importer-0.6.0.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for netbox_metatype_importer-0.6.0.tar.gz
Algorithm Hash digest
SHA256 4324a52b7935289d83b21a02dcd058ea16252c515cc7453ffc156803876a6fbe
MD5 4d1f8b20b3cece09821ca9599ec8342c
BLAKE2b-256 d5586ea3aba531477dce3964644d6f03e39e4d3fbc5f874b64629abea79a972c

See more details on using hashes here.

File details

Details for the file netbox_metatype_importer-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_metatype_importer-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2625d638cf9ebdb634bb1fc4aecfb01420424bad4fd0717871454adf76eb9a4d
MD5 d779c8f9b1607d0711a0474abf7aebec
BLAKE2b-256 bcd9d3b5ee698a237a51c27055ecf33848302fa7a9534aaf44a9b6faee8e3be6

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