cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Webcast SD-WAN
150
Views
5
Helpful
3
Replies
Highlighted

Delete EPG static binding using xml

Dear all, I am able to do Static EPG binding in PC, VPC, Interface using the below xml file and by POST option in GUI.

How to delete multiple static EPG binding using the xml POST method using GUI

 

Here is the XML file i got using "save" option in GUI

 

?xml version="1.0" encoding="UTF-8"?><imdata totalCount="1"><fvAp annotation="" descr="" dn="uni/tn-HOUSTON/ap-APP_PROFILE_PROD" name="APP_PROFILE_PROD" nameAlias="" ownerKey="" ownerTag="" prio="unspecified"><fvAEPg annotation="" descr="" exceptionTag="" floodOnEncap="disabled" fwdCtrl="" isAttrBasedEPg="no" matchT="AtleastOne" name="EPG_VLAN3092_PROD" nameAlias="" pcEnfPref="unenforced" prefGrMemb="exclude" prio="unspecified"><fvRsSecInherited annotation="" tDn="uni/tn-HOUSTON/ap-AP_NONPROD/epg-_TEMPLATE-PROD"/>

 

<fvRsPathAtt annotation="" descr="" encap="vlan-3092" instrImedcy="immediate" mode="regular" primaryEncap="unknown" tDn="topology/pod-1/protpaths-3471-3481/pathep-[VPC-TO-VMWARE-ESX125]"/>

<fvRsPathAtt annotation="" descr="" encap="vlan-3092" instrImedcy="immediate" mode="regular" primaryEncap="unknown" tDn="topology/pod-1/protpaths-3471-3481/pathep-[VPC-TO-VMWARE-ESX121]"/>

<fvRsPathAtt annotation="" descr="" encap="vlan-3092" instrImedcy="immediate" mode="regular" primaryEncap="unknown" tDn="topology/pod-1/protpaths-3471-3481/pathep-[VPC-TO-VMWARE-ESX119]"/>

 

Thanks, Kumar

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Delete EPG static binding using xml

Hello Kumar,

 

You need to add status="deleted"

 

See an example below.

 

<fvTenant descr="" dn="uni/tn-PVGAS" name="PVGAS" ownerKey="" ownerTag="">
<fvAp descr="" name="PVGAS" ownerKey="" ownerTag="" prio="unspecified">
<fvAEPg descr="" matchT="AtleastOne" name="AdministratorZone" prio="unspecified">
<fvRsPathAtt descr="" encap="vlan-2" instrImedcy="immediate" mode="regular" tDn="topology/pod-1/paths-104/pathep-[eth1/43]" status="deleted"/>
</fvAEPg>
<fvAEPg descr="" matchT="AtleastOne" name="APP" prio="unspecified">
<fvRsPathAtt descr="" encap="vlan-6" instrImedcy="immediate" mode="native" tDn="topology/pod-1/paths-104/pathep-[eth1/43]" status="deleted"/>
</fvAEPg>
<fvAEPg descr="" matchT="AtleastOne" name="DB" prio="unspecified">
<fvRsPathAtt descr="" encap="vlan-7" instrImedcy="immediate" mode="regular" tDn="topology/pod-1/paths-104/pathep-[eth1/43]" status="deleted"/>
</fvAEPg>
</fvAp>
</fvTenant>
3 REPLIES 3
Cisco Employee

Re: Delete EPG static binding using xml

Hello Kumar,

 

You need to add status="deleted"

 

See an example below.

 

<fvTenant descr="" dn="uni/tn-PVGAS" name="PVGAS" ownerKey="" ownerTag="">
<fvAp descr="" name="PVGAS" ownerKey="" ownerTag="" prio="unspecified">
<fvAEPg descr="" matchT="AtleastOne" name="AdministratorZone" prio="unspecified">
<fvRsPathAtt descr="" encap="vlan-2" instrImedcy="immediate" mode="regular" tDn="topology/pod-1/paths-104/pathep-[eth1/43]" status="deleted"/>
</fvAEPg>
<fvAEPg descr="" matchT="AtleastOne" name="APP" prio="unspecified">
<fvRsPathAtt descr="" encap="vlan-6" instrImedcy="immediate" mode="native" tDn="topology/pod-1/paths-104/pathep-[eth1/43]" status="deleted"/>
</fvAEPg>
<fvAEPg descr="" matchT="AtleastOne" name="DB" prio="unspecified">
<fvRsPathAtt descr="" encap="vlan-7" instrImedcy="immediate" mode="regular" tDn="topology/pod-1/paths-104/pathep-[eth1/43]" status="deleted"/>
</fvAEPg>
</fvAp>
</fvTenant>

Re: Delete EPG static binding using xml

 

Spoiler
Hello aleccham It works. I have to accept this is a solution.Thank you.

By the way can you suggest me the xml editor for windows OS. I use notepad++ which is hard to read.

 

 

Re: Delete EPG static binding using xml

Hello aleccham It works. I have to accept this is a solution.Thank you.

By the way can you suggest me the xml editor for windows OS. I use notepad++ which is hard to read.

 

regards,Kumar

CreatePlease to create content
Content for Community-Ad
June's Community Spotlight Awards