This is a proof of concept of using pynetbox and pyonms to build a requisition and send it to an OpenNMS instance.
NOTE: This is just a sample of pulling devices and building a requisition. You will most likely want to update the logic to fit how you want to provision your devices.
- Setup a Python virtual environment
python3 -m venv venv - Activate the virtual environment
source venv/bin/activate - Import the necessary libraries
pip3 install -r requirements.txt
Define system environment variables, or create a .env file that defines the following:
- onms_host
- onms_user
- onms_pass
- nb_host
- nb_token