copp

Usage

snap-oob2(config)#copp <value> 
snap-oob2(config-Copp)#

Settings

Context Description
copp Protocol for which COPP is configured:

ArpMC/ArpUC/BFD/BGP/
ICMPv4BC/ICMPv4UC/ICMPv6/
LACP/LLDP/STP/ArpUC/
ArpMC/BGP/ICMPv4UC/ICMPv4BC/STP/
LACP/BFD/ICMPv6/LLDP/ArpUC/ArpMC/BGP
/ICMPv4UC/ICMPv4BC/STP/
LACP/BFD/ICMPv6/LLDP
cpuqueue CPU queue to which the protocol traffic is mapped.
policer_peak_rate_burst_pps Policer peak burst rate in pps.
policer_peak_rate_pps Policer peak rate in pps.

Available Commands

Command Purpose
copp <string> Specify the protocol for which copp is being configured.
cpuqueue <integer> Specify the cpu queue. MIN: 0, MAX: 7
policer_peak_rate_pps <integer> Specify a peak rate in pps.
policer_peak_rate_burst_pps <integer> Specify a peak burst rate in pps.

Example

Commands:

FlexSwitch(config)#copp BGP 
FlexSwitch(config-Copp)#cpuqueue 2
FlexSwitch(config-Copp)#policer_peak_rate_pps 10000
FlexSwitch(config-Copp)#policer_peak_rate_burst_pps 25000
FlexSwitch(config-Copp)#apply

Response:

Applying Config:
id: 11  object: Copp   status: APPLIED CONFIG  valid: True delete: False num user cmds: 4
 command                        attr                           value    model attr                 iskey    required    userprov    time provisioned         
-------------------------------------------------------------------------------------------------------------------------------------------------------------
 copp BGP                       copp                           BGP      Protocol                   True     X           X           Thu Sep  7 09:18:01 2017 
 cpuqueue 2                     cpuqueue                       2        Cpuqueue                   False    X           X           Thu Sep  7 09:18:17 2017 
 policer_peak_rate_pps 10000    policer_peak_rate_pps          10000    PolicerPeakRatePPS         False    X           X           Thu Sep  7 09:19:10 2017 
 policer_peak_rate_burst_pps    policer_peak_rate_burst_pps    25000    PolicerPeakRateBurstPPS    False    X           X           Thu Sep  7 09:19:33 2017 
 25000                                                                                                                                                       

sdk:updateCopp(BGP,PolicerPeakRatePPS=10000,PolicerPeakRateBurstPPS=25000,Cpuqueue=2) result: SUCCESS: http status code: 200