10-20-2020 04:45 AM
Hi,
We have a lot of Epg - static path on each physical port on the fabric.
I would like to find an easy way (Gui, CLI or Ansible) to default an interface and delete all the static path binded ?
Below an example of the configuration I need to delete:
moquery -c fvRsPathAtt | grep dn | grep eth1/7
dn : uni/tn-mytenant1/ap-app1-app/epg-app1-epg/rspathAtt-[topology/pod-1/paths-101/pathep-[eth1/7]]
dn : uni/tn-mytenant1/ap-app1-app/epg-app1-epg/rspathAtt-[topology/pod-1/paths-101/pathep-[eth1/7]]
dn : uni/tn-mytenant1/ap-app2-app/epg-app2-epg/rspathAtt-[topology/pod-1/paths-101/pathep-[eth1/7]]
dn : uni/tn-mytenant1/ap-app2-app/epg-app2-epg/rspathAtt-[topology/pod-1/paths-101/pathep-[eth1/7]]
dn : uni/tn-mytenant2/ap-app3-app/epg-app3-epg/rspathAtt-[topology/pod-1/paths-101/pathep-[eth1/7]]
dn : uni/tn-mytenant2/ap-app4-app/epg-app4-epg/rspathAtt-[topology/pod-1/paths-101/pathep-[eth1/7]]
Any ideas...
Thank you
Ju
03-06-2023 11:45 PM
Hi Experts,
I still have this kind of usecase. Any ideas to help ?
Thank you
Ju
12-07-2023 05:04 AM - edited 12-07-2023 05:24 AM
Hi Ju
This article may provide help for your case:
https://www.richardstrnad.ch/posts/aci-bulk-delete-dns/
cat foo.txt | while read f; do icurl -g -k -X DELETE https://localhost/api/mo/"${f}".json; done;
Kind Regards
Jonas
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