Deploying an EPG Through an AEP to Multiple Interfaces

The interface selectors in the attachable entity profile (AEP) enable you to configure multiple paths for an AEPg. You can select the following things:

  1. A node or a group of nodes.
  2. An interface or a group of interfaces. The interfaces consume an interface policy group (infra:AttEntityP).
  3. The infra:AttEntityP is associated to the AEPg, thus specifying the VLANs to use. An infra:AttEntityP can be associated with multiple AEPgs with different VLANs.

When you associate the infra:AttEntityP with the AEPg, as in 3, this deploys the AEPg on the nodes selected in 1, on the interfaces in 2, with the VLAN provided by 3.

In this example, the AEPg uni/tn-Coke/ap-AP/epg-EPG1 is deployed on interfaces 1/10, 1/11, and 1/12 of nodes 101 and 102, with vlan-102. This procedure performs the same operation as the GUI procedure of the same name in the Cisco APIC Layer 2 Networking Configuration Guide.

Before you begin

  • Create the target application EPG (AEPg).
  • Create the VLAN pool containing the range of VLANs you wish to use for EPG deployment with the AEP.
  • Create the physical domain and link it to the VLAN pool and AEP.

Procedure

To deploy an AEPg on selected nodes and interfaces, send a POST with XML similar to the following example:

POST https://<apic-ip-address>/api/node/mo/uni.xml

<infraInfra dn="uni/infra">
    <infraNodeP name="NodeProfile">
        <infraLeafS name="NodeSelector" type="range">
            <infraNodeBlk name="NodeBlok" from_="101" to_="102"/>
            <infraRsAccPortP tDn="uni/infra/accportprof-InterfaceProfile"/>
        </infraLeafS>
    </infraNodeP>

    <infraAccPortP name="InterfaceProfile">
        <infraHPortS name="InterfaceSelector" type="range">
            <infraPortBlk name=" InterfaceBlock" fromCard="1" toCard="1" fromPort="10" toPort="12"/>
            <infraRsAccBaseGrp tDn="uni/infra/funcprof/accportgrp-PortGrp"/>
        </infraHPortS>
    </infraAccPortP>

    <infraFuncP>
        <infraAccPortGrp name="PortGrp">
            <infraRsAttEntP tDn="uni/infra/attentp-AttEntityProfile"/>
        </infraAccPortGrp>
    </infraFuncP>

    <infraAttEntityP name="AttEntityProfile">
        <infraGeneric name="default">
            <infraRsFuncToEpg tDn="uni/tn-Coke/ap-AP/epg-EPG1" encap="vlan-102"/>
        </infraGeneric>
    </infraAttEntityP>
</infraInfra>