This repository contains the scripts used in the multi-part series of articles entitled Turbocharge your Infoblox RESTful calls.
To run the scripts in this repo, I strongly recommend you create a Python virtual environment or venv. This can be done as follows:
-
Download the content of the repo to a workspace
-
unzip the file from your workspace directory
unzip turbocharge_infoblox_api.zip
-
create a Python venv
python3 -m venv turbocharge_infoblox_api
-
launch the virtual environment
cd turbocharge_infoblox_api source bin/activate
-
use
pip
orpoetry
to install required modulesExample using
pip
:pip install -r requirements.txt
Example using
poetry
:poetry install
NOTE: you should update the following variables in the scripts:
- ibx_grid_master - the IP or hostname of the Grid Master
- ibx_username - the Infoblox admin user to authenticate
- ibx_password - the Infoblox user's password
- ibx_wapi_version - the WAPI version string should be of the form 'v2.11'
- wapi-grid.py - A simple script which creates an infinite loop to fetch the WAPI grid object.
- wapi-network.py - A simple synchronous WAPI script which inserts 1024 24-bit
network objects into the grid - wapi-request.py - A WAPI script which inserts 1024 24-bit networks in a single WAPI call using the request object
- wapi-threaded.py - A WAPI script which leverages concurrency to insert 1024 24-bit networks using threads
- wapi-async.py - An async WAPI script which uses the aiohttp library to address concurrency