Command Reference Guide

DiffServ Policy Commands
CLI Command Reference
September 2014 Page 637
HP Moonshot Switch Module CLI Command Reference
DiffServ Policy Commands
Use the DiffServ policy commands to specify traffic conditioning actions, such as policing and marking, to apply
to traffic classes
Use the policy commands to associate a traffic class that you define by using the class command set with one
or more QoS policy attributes. Assign the class/policy association to an interface to form a service. Specify the
policy name when you create the policy.
Each traffic class defines a particular treatment for packets that match the class definition. You can associate
multiple traffic classes with a single policy. When a packet satisfies the conditions of more than one class,
preference is based on the order in which you add the classes to the policy. The first class you add has the
highest precedence.
This set of commands consists of policy creation/deletion, class addition/removal, and individual policy
attributes.
The CLI command root is
policy-map.
assign-queue
This command modifies the queue id to which the associated traffic stream is assigned. The queueid is an
integer from 0 to
n-1, where n is the number of egress queues supported by the device.
drop
This command specifies that all packets for the associated traffic stream are to be dropped at ingress.
Note: The only way to remove an individual policy attribute from a class instance within a policy is to
remove the class instance and re-add it to the policy. The values associated with an existing policy
attribute can be changed without removing the class instance.
Format
assign-queue queueid
Mode Policy-Class-Map Config
Incompatibilities Drop
Format
drop
Mode Policy-Class-Map Config
Incompatibilities Assign Queue, Mark (all forms), Mirror, Police, Redirect