qos apply policy global

Use qos apply policy global to apply a QoS policy globally.

Use undo qos apply policy global to remove the QoS policy.

Syntax

qos apply policy policy-name global { inbound | outbound }

undo qos apply policy policy-name global { inbound | outbound }

Default

No QoS policy is applied globally.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

policy-name: QoS policy name, a case-sensitive string of 1 to 31 characters.

inbound: Applies the QoS policy to the incoming packets on all interfaces.

outbound: Applies the QoS policy to the outgoing packets on all interfaces.

Usage guidelines

A global QoS policy takes effect on all incoming or outgoing traffic depending on the direction to which the QoS policy is applied.

If the hardware resources of an interface card are insufficient, applying a QoS policy globally might fail on the interface card. In this case, the system does not automatically roll back the QoS policy configuration already applied to the MPU or other interface cards. To ensure consistency, you must manually remove the QoS policy configuration applied to them. Do the same thing if a global QoS policy fails to update on an interface card after being dynamically modified.

Examples

# Apply the QoS policy user1 to the incoming traffic globally.

<Sysname> system-view
[Sysname] qos apply policy user1 global inbound