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

Examples

Resetting a policy named My_CoppPolicy:

switch# show copp-policy My_CoppPolicy
class                 drop priority rate kbps burst kB min-max pps
--------------------- ---- -------- --------- -------- -----------------
bgp-ipv4                   6        5000      60       412-9765
ospf-multicast             2        2000      25       165-3906
default                    1        6000      70       494-11718
switch# config terminal
switch(config)# copp-policy My_CoppPolicy
switch(config-copp)# class stp drop
switch(config-copp)# do show copp-policy My_CoppPolicy
class                 drop priority rate kbps burst kB min-max pps
--------------------- ---- -------- --------- -------- -----------------
bgp-ipv4                   6        5000      60       412-9765
ospf-multicast             2        2000      25       165-3906
default                    1        6000      70       494-11718
% 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
--------------------- ---- -------- --------- -------- ----------------- -------
bgp-ipv4                   6        5000      60       412-9765          yes
ospf-multicast             2        2000      25       165-3906          yes
stp                   drop                                               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
--------------------- ---- -------- --------- -------- -----------------
bgp-ipv4                   6        5000      60       412-9765
ospf-multicast             2        2000      25       165-3906
default                    1        6000      70       494-11718
switch(config)# exit
switch#

Resetting the default policy:

switch(config)# reset copp-policy default