class (control plane policy map)

To specify a control plane class map for a control plane policy map, use the class command. To delete a control plane class map from a control plane policy map, use the no form of this command.

class { class-map-name [ insert-before class-map-name2 ]}

no class class-map-name

Syntax Description

class-map-name
Name of the class map. The name is alphanumeric, case sensitive, and has a maximum of 64 characters.
insert-before class-map-name2
(Optional) Inserts the control plane class map ahead of another control plane class map for the control plane policy map. The class map name is alphanumeric, case sensitive, and has a maximum of 64 characters.

Command Default

None

Command Modes

Control plane policy map configuration

Command History

Release
Modification
5.1(3)N1(1)
This command was introduced.

Usage Guidelines

You must create the control plane class maps before you reference them in this command.

This command does not require a license.

Examples

This example shows how to configure a class map for a control plane policy map:

switch# configure terminal
switch(config)# policy-map type control-plane copp-system-policy-customized
switch(config-pmap)# class ClassMapA
swtich(config-pmap-c)
 

This example shows how to configure a class map for a control plane policy map and insert it before an existing class map:

switch# configure terminal
switch(config)# policy-map type control-plane copp-system-policy-customized
switch(config-pmap)# class classMapB insert-before copp-stftp
switch(config-pmap-c)#
 

This example shows how to delete a class map from a control plane policy map:

switch# configure terminal
switch(config)# policy-map type control-plane copp-system-policy-customized
switch(config-pmap)# no class ClassMapA
switch(config-pmap)#
 

Related Commands

Command
Description
class-map type control-plane
Creates or configures a control plane class map.
police (policy map)
Configures policing for a class map in a control plane policy map.
policy-map type control-plane
Specifies a control plane policy map and enters policy map configuration mode.
show policy-map type control-plane
Displays configuration information for control plane policy maps.