Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nchekwa/python-netbox-onboarding
Python script which allow creating Netbox content based on pre-prepare YAML file and netbox API.
https://github.com/nchekwa/python-netbox-onboarding
api netbox onboarding python python3
Last synced: 30 days ago
JSON representation
Python script which allow creating Netbox content based on pre-prepare YAML file and netbox API.
- Host: GitHub
- URL: https://github.com/nchekwa/python-netbox-onboarding
- Owner: nchekwa
- Created: 2020-07-28T00:09:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-19T00:27:08.000Z (about 4 years ago)
- Last Synced: 2024-11-11T05:34:46.032Z (3 months ago)
- Topics: api, netbox, onboarding, python, python3
- Language: Python
- Homepage:
- Size: 595 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
Awesome Lists containing this project
README
# About
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:```console
bash# cd /opt/python-netbox-onboarding
bash# python3 configure_netbox.py -h
usage: 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
![Example1](doc/img/example_2.png)
![Example2](doc/img/example_1.png)
![Example3](doc/img/Screenshot_3.png)
![Example4](doc/img/Screenshot_4.png)# Config-Device-Types
Include predefined device types (like: ![Juniper](https://github.com/netbox-community/devicetype-library/tree/master/device-types/Juniper), ![Cisco](https://github.com/netbox-community/devicetype-library/tree/master/device-types/Cisco), ![Arista](https://github.com/netbox-community/devicetype-library/tree/master/device-types/Arista) etc.) from official repo: ![netbox-community/devicetype-library](https://github.com/netbox-community/devicetype-library)
To sync this project with netbox-comunity devicetype-library:
```bash
yum install -y unzip
cd /opt/python-netbox-onboarding/config/devicetypes
wget https://github.com/netbox-community/devicetype-library/archive/master.zip -O /tmp/master.zip
unzip /tmp/master.zip -d /tmp/
cp -R /tmp/devicetype-library-master/device-types/* /opt/python-netbox-onboarding/config/devicetypes
```