09-13-2022 10:38 AM
We're currently working in a large enterprise environment and have written ansible code as part of an end-to-end provisioning workflow for ACI connected VMWare infrastructure.
Now, we are working on creating a decomissioning flow. While removing an EPG looks trivial with the aci_epg module, we want to do some checking prior to removal. Specifically, want to ensure that that the corresponding port group has no virtual network adapters attached.
Is anyone familiar with a way to gather this information via ACI Ansible modules? The info is clearly discovered by ACI and is viewable in UX, but we have been unsuccessful in retrieving information for any given portgroup with ansible.
Appreciate any help or guidance.
Solved! Go to Solution.
09-20-2022 07:45 AM
Following up - we were able to effectively solve this problem by using the following query and counting the objects returned; one per attached VM / vmnic.
/api/node/mo/uni/tn-<tenant>/ap-<ap>/epg-<apepg>.json?query-target=children&target-subtree-class=fvCEp
09-20-2022 07:45 AM
Following up - we were able to effectively solve this problem by using the following query and counting the objects returned; one per attached VM / vmnic.
/api/node/mo/uni/tn-<tenant>/ap-<ap>/epg-<apepg>.json?query-target=children&target-subtree-class=fvCEp
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