copp-policy

Syntax

copp-policy {<NAME> | default [revert]}

no copp-policy <NAME>

Description

Creates a CoPP policy and switches to the config-copp context for the policy. Or, if the specified policy exists, switches to the config-copp context for the policy. A predefined policy, named default, contains factory default classes and is applied to the switch at first startup. This policy cannot be deleted, but its configuration can be changed.

The no form of this command removes a CoPP policy. If a policy is active (applied), it cannot be removed . It must be replaced with another policy before it can be removed.

Command context

config

Parameters

<NAME>

Specifies the name of the policy to add or edit. Length: 1 to 64 characters. The name must not be a substring of any of the following reserved words: default, factory-default, commands, configuration, or statistics.

default

Specifies the default CoPP policy. Use this default policy to configure the default policy.

revert

Sets the default CoPP policy to its factory settings.

Authority

Administrators

Examples

Creating a policy named My_CoppPolicy:

switch(config)# copp-policy My_CoppPolicy
switch(config-copp)#

Removing a policy named My_CoppPolicy:

switch(config)# no copp-policy My_CoppPolicy

Setting the default policy to its factory settings:

switch(config)# copp-policy default revert

Unapplying the policy named My_CoppPolicy:

switch(config)# no apply copp-policy My_CoppPolicy