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 correspondig to your Netbox version.

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

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.4
RUN /opt/netbox/venv/bin/pip install "netbox-initializers==4.4.*"

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.0.tar.gz (39.4 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.0-py3-none-any.whl (74.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netbox_initializers-4.5.0.tar.gz
  • Upload date:
  • Size: 39.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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.0.tar.gz
Algorithm Hash digest
SHA256 68020252a87c3d15fcc963337f1fc9738b18d933e8b258311afde9e7ca76af9b
MD5 ab58b2523daa939078f9fa511bc30df3
BLAKE2b-256 13d596b92c4a718d2031347c3639173cb04062b005ea9ecddece4d00ec3377a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netbox_initializers-4.5.0-py3-none-any.whl
  • Upload date:
  • Size: 74.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a96388ccf282fd30f578c8a53c9827fed3b6e2734c3bdafb81a9e7f9daf792a
MD5 137bc0c2f2d54e4675f9a9bd4029794d
BLAKE2b-256 3266013aa5246a73795cd5a0627b1107ae6490a25ca01d81d1639c635c1056d1

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