01-10-2017 08:49 AM - edited 03-01-2019 05:07 AM
I am looking for information regarding best practices or tips for backing out all the configurations done for a decommissioned server (AAEP, Interface profiles, fex/leaf interface selection, etc.). I am currently looking at a process of identifying the faults, then trying to work back thru the process of Static Bindings in the EPG, Interface Policy profiles, Interface Policy Policy Groups and AAEP. Is there a feature in ACI that can more easily remove all associated config entries?
Solved! Go to Solution.
01-11-2017 06:15 AM
bobgaddie,
Unfortunately there is not easy way to delete "linked" objects. One reason for not automatically deleting linked objects is that objects can be shared by other policies and objects. Deleting automatically could or would adversely effect other policies.
So the best way to delete an object is to manually delete necessary objects. If a fault is raised, most times there is an icon "2 boxes with arrow" that can be clicked on to expand the object effected and then you can delete.
Another way to delete objects easier is to use the REST API. This method takes a little time to setup but it makes it easier in the the long run.
Example of deleting a VLAN Pool with the name "Delete-Vlan-Pool"
API POST:
method: POST
url:
https://1.2.3.4/api/node/mo/uni/infra.json
payload
{"infraInfra":{"attributes":{"dn":"uni/infra","status":"modified"},"children":[{"fvnsVlanInstP":{"attributes":{"dn":"uni/infra/vlanns-[Delete-Vlan-Pool]-dynamic","status":"deleted"},"children":[]}}]}}
You would do this for every common object type that you regularly delete. Also, if you don't share policies, use an unique name for all policies related to the Parent Policy. This way you can use the same "Name" for each related object to delete.
I hope this helps.
Thank you for participating in the Cisco Support Forum for ACI! If you have other questions related to this post, please let us know. If this response answers your questions, please mark this post "answered" and assign a rating to the response(s) provided. This will help notify other viewers that your question(s) is answered and this helps us provide better responses for this and future questions.
Thank you!
T.
01-11-2017 06:15 AM
bobgaddie,
Unfortunately there is not easy way to delete "linked" objects. One reason for not automatically deleting linked objects is that objects can be shared by other policies and objects. Deleting automatically could or would adversely effect other policies.
So the best way to delete an object is to manually delete necessary objects. If a fault is raised, most times there is an icon "2 boxes with arrow" that can be clicked on to expand the object effected and then you can delete.
Another way to delete objects easier is to use the REST API. This method takes a little time to setup but it makes it easier in the the long run.
Example of deleting a VLAN Pool with the name "Delete-Vlan-Pool"
API POST:
method: POST
url:
https://1.2.3.4/api/node/mo/uni/infra.json
payload
{"infraInfra":{"attributes":{"dn":"uni/infra","status":"modified"},"children":[{"fvnsVlanInstP":{"attributes":{"dn":"uni/infra/vlanns-[Delete-Vlan-Pool]-dynamic","status":"deleted"},"children":[]}}]}}
You would do this for every common object type that you regularly delete. Also, if you don't share policies, use an unique name for all policies related to the Parent Policy. This way you can use the same "Name" for each related object to delete.
I hope this helps.
Thank you for participating in the Cisco Support Forum for ACI! If you have other questions related to this post, please let us know. If this response answers your questions, please mark this post "answered" and assign a rating to the response(s) provided. This will help notify other viewers that your question(s) is answered and this helps us provide better responses for this and future questions.
Thank you!
T.
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