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.5.*"

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.5
RUN /usr/local/bin/uv pip install "netbox-initializers==4.5.*"

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.5.1.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.5.1-py3-none-any.whl (75.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netbox_initializers-4.5.1.tar.gz
  • Upload date:
  • Size: 39.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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.5.1.tar.gz
Algorithm Hash digest
SHA256 0be73f5b4c50c7f46a3c3655725d390aa5699b1513953f0e92599d38b958bed7
MD5 c6cc6aba14c4704127c74af224e65f74
BLAKE2b-256 5a8d6a479bcdc65d256f9ebc05a87363b5233712a84fdf3d4598dcb79ce87c12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netbox_initializers-4.5.1-py3-none-any.whl
  • Upload date:
  • Size: 75.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb370d988c0112d9ea6a9107986f701260cae74923e3d8ee57c363be34e2ae8a
MD5 95e60792b0802f89a27e6d33f65f5c15
BLAKE2b-256 9bf2ffaf6d900a825c44c45c3b063bee4ad39e4833c52041965620e7b9acb5b7

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