Code Monkey home page Code Monkey logo

netbox-device-type-library-import's Introduction

Netbox Device Type Import

This library is intended to be your friend and help you import all the device-types defined within the the NetBox Device Type Library Repository.

Tested working with 2.7.8, 2.8.8, 2.9.4

Getting Started

These instructions will get you a copy of the project on your machine to allow you to import the device types you would like without copy and pasting them into the NetBox UI.

Prerequisites

This script is written in python so this must be installed.

Python3
Python PIP

Using the Repo

Cloning the repo

git clone https://github.com/minitriga/Netbox-Device-Type-Library-Import.git

Installing the requirements

cd Netbox-Device-Type-Library-Import
pip install -r requirements.txt

Setting your variables

There are a number of variables that are required when using this script to import device types into your netbox environment.

export NETBOX_URL=http://netbox.company.com
export NETBOX_TOKEN=0123456789abcdef0123456789abcdef01234567

Using the script

To use the script simply run the following.

python nb-dt-import.py

This will pull the device-type library from Gitlab and install it into the .repo directory. if this directory is already there it will perform a git pull to update the reposity.

Arguments

This script currently accepts vendors so that only a few vendors are imported into your NetBox Environment.

This can be done the following.

python nb-dt-import.py --vendors apc

--vendors also accepts a list of vendors so that multiple vendors could be imported.

python nb-dt-import.py --vendors apc juniper

netbox-device-type-library-import's People

Contributors

mayafox avatar minitriga avatar mtinberg avatar ndom91 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.