Skip to content

Models and common functions to parse AVD Intended Config

License

Notifications You must be signed in to change notification settings

rogerscuall/crispy-enigma

Repository files navigation

CRISPY ENIGMA

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.

Installation

  • (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.

How to use it

  1. Run the AVD build playbook. ansible-playbook -i build.yml
  2. Verify that the intended\structure_configs folder was created.
  3. Create the necessary envar:
    1. export INFOBLOX_USERNAME=<user>
    2. export INFOBLOX_PASSWORD=<password>
    3. export INFOBLOX_WAPI_VERSION=<version>
    4. export INFOBLOX_URL=<url> -> export INFOBLOX_URL=1.1.1.1
    5. export NETBOX_USERNAME=<user>
    6. export NETBOX_PASSWORD=<password>
    7. export NETBOX_URL=<url> -> export NETBOX_URL=https://demo.netbox.dev
    8. export CVP_URL=<url> -> if not defined uses https://www.arista.io
    9. export CVP_USERNAME=<user>
    10. export CVP_PASSWORD=<password>
  4. Update Infoblox: crispy-enigma infobloxUpdate -f intended/structure_configs/
  5. Update Netbox: crispy-enigma netboxUpdate -f intended/structure_configs/
  6. Download and compare configs with CVP: crispy-enigma cvpConfig -f intended/configs/