03-06-2019 01:51 AM
Hi,
I have a port set up in APIC with an Interface Policy Group and (for sake of example) 20 separate epgs- is there a way (simply) to reset the port to default (no config), rather than going into each epg and removing the port, then going into the port and removing the policy groups etc. There must be an easier way - but I can't see it.
Apologies if this is obvious, but I can't see the wood for the trees now.
03-08-2019 12:53 AM
Hi,
Sorry to say this but this is the hard part you either haver to remove it manually or script it.
I dont think removing the Interface will clear all the EPGs from the configuration.
GL
Martin
08-19-2019 04:05 AM
You don't happen to have a script do you? I've looked around the internet can find nothing.
Thanks
09-04-2019 01:22 AM - edited 09-04-2019 01:22 AM
Hi @Jamie1107 ,
If you use postman collection runner you can achieve this :
https://blog.getpostman.com/2018/04/11/looping-through-a-data-file-in-the-postman-collection-runner/
=*===========================================================================*=
Post URL:https://APIC-IP/api/node/mo/uni/tn-{{TenantName}}/ap-{{ApplicationProfileName}}/epg-{{EPGName}}/rspathAtt-[topology/pod-{{PODID}}/paths-{{LEAFID}}/pathep-[eth1/{{PORTNUMBER}}]].json
Post Body .json format:
{
"fvRsPathAtt": {
"attributes": {
"dn": "uni/tn-{{TenantName}}/ap-{{ApplicationProfileName}}/epg-{{EPGName}}/rspathAtt-[topology/pod-{{PODID}}/paths-{{LEAFID}}/pathep-[eth1/{{PORTNUMBER}}]]",
"status": "deleted"
},
"children": []
}
=*===========================================================================*=
The Read words are the variables already created on the postman , you just would need to create the cvs file with the Variables and then run it on postman.
Just keep in mind you need to authenticat as well to the apic via postman before doing this.
Alejandro Avila Picado .:|:.:|:.
08-23-2022 02:08 AM
Hi, did you find a way to remove the EPG from the Port?
thank you
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