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 kbps burst kB min-max pps       hardware rate kbps
--------------------- ---- -------- --------- -------- ----------------- ------------------
igmp                       6        5000      60       411-9765          5156
lacp                       2        2000      64       164-3906          2343
default                    1        6000      70       494-11718         6093
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 kbps burst kB min-max pps       hardware rate kbps
--------------------- ---- -------- --------- -------- ----------------- ------------------
igmp                       6        5000      60       411-9765          5156
lacp                       2        2000      64       164-3906          2343
default                    1        6000      70       494-11718         6093
% 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 kbps burst kB min-max pps       applied
--------------------- ---- -------- --------- -------- ----------------- -------
igmp                       6        5000      60       411-9765          yes
lacp                       2        2000      64       164-3906          yes
stp                        4        4000      60       329-7812          no
default                    1        6000      70       494-11718         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 kbps burst kB min-max pps       hardware rate kbps
--------------------- ---- -------- --------- -------- ----------------- ------------------
igmp                       6        5000      60       411-9765          5156
lacp                       2        2000      64       164-3906          2343
default                    1        6000      70       494-11718         6093

Resetting the default policy:

switch(config)# reset copp-policy default