Skip to main content

Load initial data into Netbox

Project description

Netbox Initializers Plugin

Load data from YAML files into Netbox

Installation

First activate your virtual environment where Netbox is installed, the install the plugin version corresponding to your Netbox version.

pip install "netbox-initializers==4.6.*"

Then you need to add the plugin to the PLUGINS array in the Netbox configuration.

PLUGINS = [
    'netbox_initializers',
]

Getting started

At first you need to start with writing the YAML files that contain the initial data. To make that easier the plugin includes example files for all supported initializers. To access those examples you can copy them into a directory of your choosing and edit them there. To copy the files run the following command (in your Netbox directory):

./manage.py copy_initializers_examples --path /path/for/example/files

After you filled in the data you want to import, the import can be started with this command:

./manage.py load_initializer_data --path /path/for/example/files

Netbox Docker image

The initializers where a part of the Docker image and where then extracted into a Netbox plugin. This was done to split the release cycle of the initializers and the image. To use the new plugin in a the Netbox Docker image, it musst be installad into the image. To this, the following example can be used as a starting point:

FROM netboxcommunity/netbox:v4.6
RUN /usr/local/bin/uv pip install "netbox-initializers==4.6.*"

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_initializers-4.6.0.tar.gz (39.6 kB view details)

Uploaded Source

Built Distribution

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

netbox_initializers-4.6.0-py3-none-any.whl (75.1 kB view details)

Uploaded Python 3

File details

Details for the file netbox_initializers-4.6.0.tar.gz.

File metadata

  • Download URL: netbox_initializers-4.6.0.tar.gz
  • Upload date:
  • Size: 39.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.10 {"installer":{"name":"uv","version":"0.11.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for netbox_initializers-4.6.0.tar.gz
Algorithm Hash digest
SHA256 c47bfba801374ff8e303dcdf124b89d246e55c45fcbefec3ebcd13c2af2b4b1b
MD5 e782928067fef13db148472157d8c683
BLAKE2b-256 76e61ff32ea7dcca0a58c7691982ac232735b1fb108eadc85e5ed8aefc0b62f0

See more details on using hashes here.

File details

Details for the file netbox_initializers-4.6.0-py3-none-any.whl.

File metadata

  • Download URL: netbox_initializers-4.6.0-py3-none-any.whl
  • Upload date:
  • Size: 75.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.10 {"installer":{"name":"uv","version":"0.11.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for netbox_initializers-4.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c658bb3f2ec3f18301d92f9d7032be49f83d4932bed8c1fc4fe398b9d080d45
MD5 977af7a145b69bf941a4b6609c266725
BLAKE2b-256 86f4c0bfb71c69c94e7f3256bc0e0b07f5c0f2fe3a4d4b83f3f09e55d3271211

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