This project is a demo to use the artifacts created by Arista AVD during the build process and update other systems.
When the build playbook of AVD runs creates a folder called intended\structure_configs
with a yml file for every switch in the topology. This project uses this files to update Netbox and Infoblox with the new information. This script also is capable of generating YAML files to be consumed by the ansible-playbook build.yml
from AVD.
- (Recommended) Download the correct version of your OS from the releases page.
- Build the binary:
- Install Go.
- Download the repo:
git clone https://github.com/rogerscuall/crispy-enigma.git
. - Move to the repo:
cd crispy-enigma
. - Create the binary:
go build -o crispy-enigma
.
- Run the AVD build playbook.
ansible-playbook -i build.yml
- Verify that the
intended\structure_configs
folder was created. - Create the necessary envar:
export INFOBLOX_USERNAME=<user>
export INFOBLOX_PASSWORD=<password>
export INFOBLOX_WAPI_VERSION=<version>
export INFOBLOX_URL=<url>
->export INFOBLOX_URL=1.1.1.1
export NETBOX_USERNAME=<user>
export NETBOX_PASSWORD=<password>
export NETBOX_URL=<url>
->export NETBOX_URL=https://demo.netbox.dev
export CVP_URL=<url>
-> if not defined useshttps://www.arista.io
export CVP_USERNAME=<user>
export CVP_PASSWORD=<password>
- Update Infoblox:
crispy-enigma infobloxUpdate -f intended/structure_configs/
- Update Netbox:
crispy-enigma netboxUpdate -f intended/structure_configs/
- Download and compare configs with CVP:
crispy-enigma cvpConfig -f intended/configs/