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 (Output from an 8320 switch):

switch# show copp-policy My_CoppPolicy
class                 drop priority rate pps burst pkts
--------------------- ---- -------- --------- ---------
bgp-ipv4                   6        5000      5000
ospf-multicast-ipv4        2        2000      2000
default                    1        6000      6000
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 pps  burst pkts
--------------------- ---- -------- --------- ----------
bgp-ipv4                   6        5000      5000
ospf-multicast-ipv4        2        2000      2000
default                    1        6000      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
--------------------- ---- -------- --------- ---------- -------
bgp-ipv4                   6        5000      5000       yes
ospf-multicast-ipv4        2        2000      2000       yes
stp                   drop                               no
default                    1        6000      6000       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
--------------------- ---- -------- --------- ----------
bgp-ipv4                   6        5000      5000
ospf-multicast-ipv4        2        2000      2000
default                    1        6000      6000
switch(config)# exit
switch#

Resetting the default policy:

switch(config)# reset copp-policy default