# Define a match criterion for traffic class class1 to match packets of the protocols in protocol group
normal.
<Sysname> system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match control-plane protocol-group normal
traffic classifier
Use traffic classifier to create a traffic class and enter traffic class view.
Use undo traffic classifier to delete a traffic class.
Syntax
traffic classifier classifier-name [ operator { and | or } ]
undo traffic classifier classifier-name
Default
No traffic class exists.
Views
System view
Predefined user roles
network-admin
Parameters
classifier-name: Specifies a traffic class name, a case-sensitive string of 1 to 31 characters.
operator: Sets the operator to logic AND (the default) or OR for the traffic class.
and: Specifies the logic AND operator. The traffic class matches the packets that match all its criteria.
or: Specifies the logic OR operator. The traffic class matches the packets that match any of its criteria.
Examples
# Create a traffic class class1.
<Sysname> system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1]
Related commands
display traffic classifier
Traffic behavior commands
accounting
Use accounting to configure the traffic accounting action in a traffic behavior.
Use undo accounting to delete the traffic accounting action from a traffic behavior.
40