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.4.0.tar.gz (43.2 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.4.0-py3-none-any.whl (74.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netbox_initializers-4.4.0.tar.gz
  • Upload date:
  • Size: 43.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for netbox_initializers-4.4.0.tar.gz
Algorithm Hash digest
SHA256 b7b641488de3f624251bf2f6eaa9229dcc8c6dd843ab4d91524ce563c6c335d5
MD5 6405af0101ea033f285ab0942c7493dd
BLAKE2b-256 09bbe15e4ae7e0d42fac0f9a4ec2153f3aa6e873cb317832f175bf0f15109b0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netbox_initializers-4.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 efe1dd8851cf400033e860a4007bf023d847c95f1f164e635054b0416c0c2211
MD5 81e89ff7d3a702e97ead94d2c8aaba68
BLAKE2b-256 9036c92721cf52ceaa0470cc72149f8f0e18ce1e833b6d34efb754f20cbf3b7b

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