Configuring Leaf Switch Physical Ports Using the Interface Configuration

This example configures four physical ports (interfaces 1/10 to 1/13) on leaf switch 107 and on leaf switch 108 to use the access port policy group called "PortProfile".

You can use the interface configuration beginning in the 6.0(1) release.

Before you begin

  • The Cisco ACI fabric is installed, the Cisco APICs are online, and the Cisco APIC cluster is formed and healthy.
  • A Cisco APIC fabric administrator account is available that will enable creating the necessary fabric infrastructure configurations.
  • The target leaf switch and protocols are configured and available.

Procedure

Step 1

Create the physical port configuration.

Example:

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

<infraInfra dn="uni/infra">

    <infraPortConfig node="107" card="1" port="10" assocGrp="uni/infra/funcprof/accportgrp-PortProfile"/>
    <infraPortConfig node="107" card="1" port="11" assocGrp="uni/infra/funcprof/accportgrp-PortProfile"/>
    <infraPortConfig node="107" card="1" port="12" assocGrp="uni/infra/funcprof/accportgrp-PortProfile"/>
    <infraPortConfig node="107" card="1" port="13" assocGrp="uni/infra/funcprof/accportgrp-PortProfile"/>

    <infraPortConfig node="108" card="1" port="10" assocGrp="uni/infra/funcprof/accportgrp-PortProfile"/>
    <infraPortConfig node="108" card="1" port="11" assocGrp="uni/infra/funcprof/accportgrp-PortProfile"/>
    <infraPortConfig node="108" card="1" port="12" assocGrp="uni/infra/funcprof/accportgrp-PortProfile"/>
    <infraPortConfig node="108" card="1" port="13" assocGrp="uni/infra/funcprof/accportgrp-PortProfile"/>

    <infraFuncP>
        <infraAccPortGrp name="PortProfile">
            <infraRsCdpIfPol tnCdpIfPolName="default"/>
            <infraRsLacpPol tnLacpLagPolName="default"/>
            <infraRsAttEntP tDn="uni/infra/attentp-myAAEP"/>
        </infraAccPortGrp>
    </infraFuncP>

</infraInfra>

When the POST succeeds, the object that you created appears in the response.