cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2015
Views
5
Helpful
1
Replies

ACI - removing decommissioned servers

bobgaddie
Level 1
Level 1

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?

1 Accepted Solution

Accepted Solutions

Tomas de Leon
Cisco Employee
Cisco Employee

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.

  • enable the "api inspector" to record the REST API POST
  • delete an object (for example, a vlan pool)
  • save the REST API POST for deleting the object
  • create a template post in POSTMAN for deleting this specific object
  • in future if you need to delete this particular object, simply change the name of object in the POST and send to APIC.

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.

View solution in original post

1 Reply 1

Tomas de Leon
Cisco Employee
Cisco Employee

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.

  • enable the "api inspector" to record the REST API POST
  • delete an object (for example, a vlan pool)
  • save the REST API POST for deleting the object
  • create a template post in POSTMAN for deleting this specific object
  • in future if you need to delete this particular object, simply change the name of object in the POST and send to APIC.

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.

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License