03-08-2018 06:55 AM - edited 03-01-2019 05:28 AM
Hi, I have about 300 EPGs (Indvidual Networks/VLANs) that I need to associate with a Domain. When you go to Tenants -> Application Profiles -> Application EPGs and select an EPG, you will see "Domains (VMs and Bare-Metals). I need to do a bulk update on many of my ~250 EPGs and associate thm to a Physical Domain. For bulk updates in the past, I've been sucessful using the NX-OS Style CLI in the APIC by first taking the running config output of the controller before the change, making a single change, get the running config again and then comparing the output to determine which lines of config I need to add.
However, when adding a Domain to an individual EPG, I do not see any changes in the output of the "show running-config" of the APIC. Is there any way to do this work via the CLI or must you use the API/GUI?
03-08-2018 12:21 PM
I don't have time to explain how, but this is probably an exercise that is worth learning how to program the APIC using the APIs.
There are a couple of approaches, such as PowerShell scripting and using Python. Cisco supply a python library called Cobra that eases the pain of programming using Python, but if you are not familiar with Python or programming, this whole task could blow out to be harder than manually doing the 300 updates.
But as for the CLI, you may have found one of those little idiosyncrasies where there is no equivalent in the CLI. I have in the past taken a complete CLI config and pasted it back in, and amazingly extra bits turn up in my config that were not there before when the APIC made stuff up to fill in the gaps.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide