qos apply policy
Use qos apply policy to apply a QoS policy to an interface, a control plane, or the management interface control plane.
Use undo qos apply policy to remove the applied QoS policy.
Syntax
qos apply policy policy-name { inbound | outbound }
undo qos apply policy policy-name { inbound | outbound }
Default
No QoS policy is applied to an interface, a control plane, or the management interface control plane.
Views
Interface view, control plane view, control plane management view
Predefined user roles
network-admin
mdc-admin
Parameters
policy-name: Specifies a QoS policy by its name, a case-sensitive string of 1 to 31 characters.
inbound: Applies the QoS policy to the incoming traffic.
outbound: Applies the QoS policy to the outgoing traffic.
Usage guidelines
QoS policies cannot be applied to VLAN or aggregate interfaces.
In a QoS policy applied to the control plane of the card where an IRF physical port resides, if an Ethernet frame header ACL for traffic classification has a rule to permit all packets (configured by using the rule permit command), do not configure the car cir or filter deny command in the associated traffic behavior. Otherwise, an IRF split might occur.
Examples
# Apply the QoS policy USER1 to the incoming traffic of GigabitEthernet 3/0/1.
<Sysname> system-view [Sysname] interface gigabitethernet 3/0/1 [Sysname-GigabitEthernet3/0/1] qos apply policy USER1 outbound
# Apply the QoS policy aaa to the incoming traffic of the control plane of slot 3.
<Sysname> system-view [Sysname] control-plane slot 3 [Sysname-cp-slot3] qos apply policy aaa inbound
# Apply the QoS policy bbb to the incoming traffic of the management interface control plane.
<Sysname> system-view [Sysname] control-plane management [Sysname-cp-management] qos apply policy bbb inbound