reset copp-policy

Syntax

reset copp-policy { <NAME> | default }

Description

Resets an active CoPP policy to match the settings that are currently in effect for the active policy on the switch. Changes made to the active policy that could not be activated are removed from the active policy. When the switch fails to add or modify a class in an active CoPP policy, it is possible the active policy settings on the switch may be out of sync with those defined in the policy.

Command context

config

Parameters

<NAME>

Specifies the name of the policy to reset. Length: 1 to 64 characters.

default

Resets the default policy to match its active settings.

Authority

Administrators or local user group members with execution rights for this command.

Examples

Resetting a policy named My_CoppPolicy:

switch# show copp-policy My_CoppPolicy
class                 drop priority rate pps burst pkts hardware rate pps
--------------------- ---- -------- -------- ---------- -----------------
igmp                       6        5000     60         5000
lacp                       2        2000     2050       2000
default                    1        6000     70         6000
switch# config terminal
switch(config)# copp-policy My_CoppPolicy
switch(config-copp)# class stp priority 4 rate 4000 burst 60
switch(config-copp)# do show copp-policy My_CoppPolicy
class                 drop priority rate pps burst pkts hardware rate pps
--------------------- ---- -------- -------- ---------- -----------------
igmp                       6        5000     60         5000
lacp                       2        2000     2050       2000
default                    1        6000     70         6000
% Warning: user-specified classes in CoPP policy My_CoppPolicy do not match
 active configuration.
switch(config-copp)# do show copp-policy My_CoppPolicy configuration
class                 drop priority rate pps burst pkts applied
--------------------- ---- -------- -------- ---------- -------
igmp                       6        5000     60         yes
lacp                       2        2000     2050       yes
stp                        4        4000     60         no
default                    1        6000     70         yes
% Warning: user-specified classes in CoPP policy My_CoppPolicy do not match
 active configuration.
switch(config-copp)# exit
switch(config)# reset copp-policy My_CoppPolicy
switch(config)# do show copp-policy My_CoppPolicy
class                 drop priority rate pps burst pkts hardware rate pps
--------------------- ---- -------- -------- ---------- -----------------
igmp                       6        5000     60         5000
lacp                       2        2000     2050       2000
default                    1        6000     70         6000

Resetting the default policy:

switch(config)# reset copp-policy default