02-25-2021 05:33 AM
I'm trying to get a JSON/XML output from APIC showing all the EPGs associated to a VPC pair and the external VLAN Mappings. I've been able to find it in the GUI, but can't seem to export it in any usable form. I need to copy the configuration to a different set a leaf IDs on new ports for a migration.
GUI Location is Fabric -> Inventory -> Leaf -> Interfaces -> VPC Interfaces -> VPC -> VLANs Tab
Anyone else find this information? My google skills are lacking on this one.
02-25-2021 06:42 AM
Hi @dpkline01
Try using a GET to this url: http://apic1/api/node/class/topology/pod-1/node-201/vpcDom.json
Change the values from the URL with your desired apic IP, pod id, and node id.
Stay safe,
Sergiu
02-27-2021 11:47 PM
The following query will give EPG static bindings for all paths VPC as well as for non-VPC
https://{{apic}}/api/class/fvRsPathAtt.json?rsp-subtree=full&rsp-prop-include=config-only
if you have used some naming convention for VPC policy groups, like if you have VPC word in the VPC policy group, then you can use the following query to filter only the EPG static bindings on the VPC ports.
https://{{apic}}/api/class/fvRsPathAtt.json?query-target-filter=wcard(fvRsPathAtt.dn,"vPC")&rsp-subtree=full&rsp-prop-include=config-only
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