To configure a
traffic storm control policy, create a
stormctrl:IfPol
object with the desired properties.
To create a policy
named MyStormPolicy, send this HTTP POST message:
POST https://192.0.20.123/api/mo/uni/infra/stormctrlifp-MyStormPolicy.json
In the body of the
POST message, Include the following JSON payload structure to specify the
policy by percentage of available bandwidth:
{"stormctrlIfPol":
{"attributes":
{"dn":"uni/infra/stormctrlifp-MyStormPolicy",
"name":"MyStormPolicy",
"rate":"75",
"burstRate":"85",
"rn":"stormctrlifp-MyStormPolicy",
"status":"created"
},
"children":[]
}
}
In the body of the POST message, Include the following JSON payload structure to specify the policy by packets per second:
{"stormctrlIfPol":
{"attributes":
{"dn":"uni/infra/stormctrlifp-MyStormPolicy",
"name":"MyStormPolicy",
"ratePps":"12000",
"burstPps":"15000",
"rn":"stormctrlifp-MyStormPolicy",
"status":"created"
},
"children":[]
}
}
Apply the traffic storm control interface policy to an interface port.
[A] Interface Ethernet 1/1:
Storm-control Action
<?xml version="1.0" encoding="UTF-8"?>
<infraInfra status='created,modified'>
<infraHPathS name='__ui_l101_eth1--1' status='created,modified'>
<infraRsPathToAccBaseGrp tDn='uni/infra/funcprof/accportgrp-__ui_l101_eth1--1' status='created,modified'>
</infraRsPathToAccBaseGrp>
<infraRsHPathAtt tDn='topology/pod-1/paths-101/pathep-[eth1/1]' status='created,modified'>
</infraRsHPathAtt>
</infraHPathS>
<infraFuncP status='created,modified'>
<infraAccPortGrp name='__ui_l101_eth1--1' status='created,modified'>
<infraRsStormctrlIfPol status='created,modified' tnStormctrlIfPolName='__ui_l101_eth1--1'>
</infraRsStormctrlIfPol>
</infraAccPortGrp>
</infraFuncP>
<stormctrlIfPol status='created,modified' stormCtrlAction='shutdown' name='__ui_l101_eth1--1'>
</stormctrlIfPol>
</infraInfra>
Storm-control Soak-instance-count
<?xml version="1.0" encoding="UTF-8"?>
<infraInfra status='created,modified'>
<infraHPathS name='__ui_l101_eth1--1'>
<infraRsPathToAccBaseGrp tDn='uni/infra/funcprof/accportgrp-__ui_l101_eth1--1' status='created,modified'>
</infraRsPathToAccBaseGrp>
</infraHPathS>
<infraFuncP status='created,modified'>
<infraAccPortGrp name='__ui_l101_eth1--1' status='created,modified'>
<infraRsStormctrlIfPol status='created,modified' tnStormctrlIfPolName='__ui_l101_eth1--1'>
</infraRsStormctrlIfPol>
</infraAccPortGrp>
</infraFuncP>
<stormctrlIfPol status='created,modified' stormCtrlSoakInstCount='4' name='__ui_l101_eth1--1' >
</stormctrlIfPol>
</infraInfra>
CLI:
Last login: 2019-03-12T22:13:52.000+00:00 UTC
apic1# config
apic1(config)# leaf 101
apic1(config-leaf)# in eth 1/1
apic1(config-leaf-if)# storm-control action shutdown
apic1(config-leaf-if)# storm-control soak-instance-count 4
[B] Port Channel pc1:
Storm-control Action
<?xml version="1.0" encoding="UTF-8"?>
<infraInfra status='created,modified'>
<infraHPathS name='__ui_l101_pc1'>
<infraRsPathToAccBaseGrp tDn='uni/infra/funcprof/accbundlepolgrp-__ui_l101_pc1' status='created,modified'>
</infraRsPathToAccBaseGrp>
</infraHPathS>
<infraFuncP status='created,modified'>
<infraAccBndlPolGrp name='__ui_l101_pc1' status='created,modified'>
<infraRsStormctrlIfPol status='created,modified' tnStormctrlIfPolName='__ui_l101_pc1'>
</infraRsStormctrlIfPol>
</infraAccBndlPolGrp>
</infraFuncP>
<stormctrlIfPol status='created,modified' stormCtrlAction='shutdown' name='__ui_l101_pc1'>
</stormctrlIfPol>
</infraInfra>
Storm-control soak-instance-count
<?xml version="1.0" encoding="UTF-8"?>
<infraInfra status='created,modified'>
<infraHPathS name='__ui_l101_pc1'>
<infraRsPathToAccBaseGrp tDn='uni/infra/funcprof/accbundlepolgrp-__ui_l101_pc1' status='created,modified'>
</infraRsPathToAccBaseGrp>
</infraHPathS>
<infraFuncP status='created,modified'>
<infraAccBndlPolGrp name='__ui_l101_pc1' status='created,modified'>
<infraRsStormctrlIfPol status='created,modified' tnStormctrlIfPolName='__ui_l101_pc1'>
</infraRsStormctrlIfPol>
</infraAccBndlPolGrp>
</infraFuncP>
<stormctrlIfPol status='created,modified' stormCtrlSoakInstCount='9' name='__ui_l101_pc1'>
</stormctrlIfPol>
</infraInfra>
CLI:
Last login: 2019-03-12T22:21:48.000+00:00 UTC
apic1# config
apic1(config)# leaf 101
apic1(config-leaf)# interface port-channel pc1
apic1(config-leaf-if)# storm-control action shutdown
apic1(config-leaf-if)# storm-control soak-instance-count 9
[C] Template Port Channel
Strom-control Action
<?xml version="1.0" encoding="UTF-8"?>
<infraInfra status='created,modified'>
<infraFuncP status='created,modified'>
<infraAccBndlGrp name='tPC1' status='created,modified'>
<infraRsStormctrlIfPol status='created,modified' tnStormctrlIfPolName='__ui_po_tPC1'>
</infraRsStormctrlIfPol>
</infraAccBndlGrp>
</infraFuncP>
<stormctrlIfPol status='created,modified' stormCtrlAction='shutdown' name='__ui_po_tPC1'>
</stormctrlIfPol>
</infraInfra>
Storm-control Soak-instance-count
<?xml version="1.0" encoding="UTF-8"?>
<infraInfra status='created,modified'>
<infraFuncP status='created,modified'>
<infraAccBndlGrp name='tPC1' status='created,modified'>
<infraRsStormctrlIfPol status='created,modified' tnStormctrlIfPolName='__ui_po_tPC1'>
</infraRsStormctrlIfPol>
</infraAccBndlGrp>
</infraFuncP>
<stormctrlIfPol status='created,modified' stormCtrlSoakInstCount='9' name='__ui_po_tPC1'>
</stormctrlIfPol>
</infraInfra>
CLI
Last login: 2019-03-12T22:21:48.000+00:00 UTC
apic1# config
apic1(config)# template port-channel tPC1
apic1(config-po-ch-if)# storm-control action shutdown
apic1(config-po-ch-if)# storm-control soak 9
[D] Template Policy-group
Storm-control Action
<?xml version="1.0" encoding="UTF-8"?>
<infraInfra status='created,modified'>
<infraFuncP status='created,modified'>
<infraAccPortGrp name='pg1' status='created,modified'>
<infraRsStormctrlIfPol status='created,modified' tnStormctrlIfPolName='__ui_pg_pg1'>
</infraRsStormctrlIfPol>
</infraAccPortGrp>
</infraFuncP>
<stormctrlIfPol status='created,modified' stormCtrlAction='shutdown' name='__ui_pg_pg1'>
</stormctrlIfPol>
</infraInfra>
Storm-control Soak-instance-count
<?xml version="1.0" encoding="UTF-8"?>
<infraInfra status='created,modified'>
<infraFuncP status='created,modified'>
<infraAccPortGrp name='pg1' status='created,modified'>
<infraRsStormctrlIfPol status='created,modified' tnStormctrlIfPolName='__ui_pg_pg1'>
</infraRsStormctrlIfPol>
</infraAccPortGrp>
</infraFuncP>
<stormctrlIfPol status='created,modified' stormCtrlSoakInstCount='8' name='__ui_pg_pg1'>
</stormctrlIfPol>
</infraInfra>
CLI
Last login: 2019-03-12T22:36:36.000+00:00 UTC
apic1# config
apic1(config)# template policy-group pg1
apic1(config-pol-grp-if)# storm-control action shutdown
apic1(config-pol-grp-if)# storm-control soak-instance-count 8
[E] VPC
Storm-control Action
<?xml version="1.0" encoding="UTF-8"?>
<infraInfra status='created,modified'>
<infraHPathS name='__ui_l101_102_vpc1' status='created,modified'>
<infraRsPathToAccBaseGrp tDn='uni/infra/funcprof/accbundlepolgrp-__ui_l101_102_vpc1' status='created,modified'>
</infraRsPathToAccBaseGrp>
<infraRsHPathAtt tDn='topology/pod-1/protpaths-101-102/pathep-[vpc1]' status='created,modified'>
</infraRsHPathAtt>
</infraHPathS>
<infraFuncP status='created,modified'>
<infraAccBndlPolGrp name='__ui_l101_102_vpc1' status='created,modified'>
<infraRsStormctrlIfPol status='created,modified' tnStormctrlIfPolName='__ui_l101_102_vpc1'>
</infraRsStormctrlIfPol>
</infraAccBndlPolGrp>
</infraFuncP>
<stormctrlIfPol status='created,modified' stormCtrlAction='shutdown' name='__ui_l101_102_vpc1'>
</stormctrlIfPol>
</infraInfra>
Storm-control Soak-instance-count
<?xml version="1.0" encoding="UTF-8"?>
<infraInfra status='created,modified'>
<infraHPathS name='__ui_l101_102_vpc1'>
</infraHPathS>
<infraFuncP status='created,modified'>
<infraAccBndlPolGrp name='__ui_l101_102_vpc1' status='created,modified'>
<infraRsStormctrlIfPol status='created,modified' tnStormctrlIfPolName='__ui_l101_102_vpc1'>
</infraRsStormctrlIfPol>
</infraAccBndlPolGrp>
</infraFuncP>
<stormctrlIfPol status='created,modified' stormCtrlSoakInstCount='8' name='__ui_l101_102_vpc1'>
</stormctrlIfPol>
</infraInfra>
CLI:
Last login: 2019-03-12T23:54:13.000+00:00 UTC
apic1# configure
apic1(config)# vpc context leaf 101 102
apic1(config-vpc)# interface vpc vpc1
apic1(config-vpc-if)# storm-control action shutdown
apic1(config-vpc-if)# storm-control soak-instance-count 8