This blog post was initially sent to subscribers of my mailing list. Subscribe here.
Following on his previous work with Cisco ACI Dirk Feldhaus decided to create an Ansible playbook that would create and configure a new tenant and provision a vSRX firewall for the tenant when working on the Create Network Services hands-on exercise in the Building Network Automation Solutions online course.
The most interesting part of his solution: the existing Ansible ACI modules didn’t provide all the functionality he needed to configure his tenants, so he had to create the data structure expected by a Cisco ACI REST API calls (create L3 external connection, create static port) with a Jinja2 template and use aci_rest module to execute them.
If you plan to make your Cisco ACI environment more consistent by automating common operations that would take dozens of (unreliable operator-driven) GUI clicks explore his solution and adapt it to your needs… and if you need more information, watch his presentation from autumn 2018 Building Network Automation Solutions online course.