match discard-class
To identify specific discard class values as a match criteria for a class map, use the match discard-class
command in class map configuration mode. To remove specified discard class values from the matching
criteria for a class map, use the no form of this command.
match [not] discard-class discard-class-value [discard-class-value1 ... discard-class-value7]
no match [not] discard-class discard-class-value [discard-class-value1 ... discard-class-value7]
Syntax Description
(Optional) Negates the specified match result.not
Discard class identifier. You can specify up to eight discard class identifiers
to match packets. Class identifiers are separated by white spaces. Range is 0
to 7.
discard-class-value
Command Default
No default behavior or values
Command Modes
Class map configuration
Command History
ModificationRelease
This command was introduced.Release 2.0
The not keyword was added.Release 3.3.0
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
The match discard-class command specifies a discard class that is used as the match criteria against which
packets are checked to determine if they belong to the class specified by the class map.
To use the match discard-class command, you must first enter the class-map command to specify the
name of the class whose match criteria you want to establish. If you specify more than one match discard-class
command in a class map, the new values are added to the existing match statement.
The match discard-class command sets the match criteria for examining discard classes marked on the
packet. Up to eight discard class values can be matched in one match statement. For example, match
discard-class 0 1 2 3 4 5 6 7 returns matches for discard class values 0, 1, 2, 3, 4, 5, 6, and 7. Only one of the
seven values is needed to yield a match (OR operation).
Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0
OL-23235-03 41
Quality of Service Commands on the Cisco IOS XR Software
match discard-class