Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Python script which allow creating Netbox content based on pre-prepare YAML file and netbox API.

NotificationsYou must be signed in to change notification settings

nchekwa/python-netbox-onboarding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Script which build automatically all elements in Netbox using API request and Python language
Tested with:

  • Netbox v2.9.2
  • Python 3.6.8

HowTo

  • check diagram folder for topology example
  • check 'config/variables.yaml' file to set what you need

Run

  • edit variables (you can add additional parameters from API syntax)
  • run:
bash# cd /opt/python-netbox-onboardingbash# python3 configure_netbox.py -husage: configure_netbox.py [-h] [-c CONFIG]optional arguments:  -h, --help            show this help message and exit  -c CONFIG, --config CONFIG                        YAML File with configuration (default='config/variables.yaml')

YAML Config example:https://github.com/azdolinski/python-netbox-onboarding/blob/master/config/variables.yaml

Examples screenshots

Example1Example2Example3Example4

Config-Device-Types

Include predefined device types (like:Juniper,Cisco,Arista etc.) from official repo:netbox-community/devicetype-library
To sync this project with netbox-comunity devicetype-library:

yum install -y unzipcd /opt/python-netbox-onboarding/config/devicetypeswget https://github.com/netbox-community/devicetype-library/archive/master.zip -O /tmp/master.zipunzip  /tmp/master.zip -d /tmp/cp -R /tmp/devicetype-library-master/device-types/* /opt/python-netbox-onboarding/config/devicetypes

About

Python script which allow creating Netbox content based on pre-prepare YAML file and netbox API.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp