apply qos

Syntax

apply qos [queue-profile <QUEUE-NAME>] schedule-profile <SCHEDULE-NAME>

no apply qos schedule-profile <SCHEDULE-NAME>

Description

Applies a queue profile and schedule profile globally to all Ethernet and LAG interfaces on the switch, or applies only a schedule profile to a specific interface. When applied globally, the specified schedule profile is configured only on Ethernet interfaces and LAGs that do not already have their own schedule profile.

In the config-if context, the no form of this command removes the specified schedule profile from an interface and the interface uses the global schedule profile. This is the only way to remove a schedule profile override from the interface.

In the config context, the no apply qos command reverts the global queue and schedule profiles to their factory-default values. It is not necessary to specify the currently applied queue and schedule profile names.

NOTE:

Interfaces may shut down briefly during reconfiguration.

Command context

config

config-if

Parameters

queue-profile <QUEUE-NAME>

Specifies the name of the queue profile to apply. Range: 1 to 64 alphanumeric characters, including period (.), underscore (_), and hyphen (-). This parameter is not supported in the config-if context.

schedule-profile <SCHEDULE-NAME>

Specifies the name of the schedule profile to apply. Range: 1 to 64 alphanumeric characters, including period (.), underscore (_), and hyphen (-).

Authority

Administrators

Usage

  • For a queue profile to be complete and ready to be applied, all local priorities must be mapped to a queue.
  • For a schedule profile to be complete and ready to be applied, all eight queues must be defined. All queues must use the same algorithm, except for the highest numbered queue, which may be strict.
  • Both the queue profile and the schedule profile must specify the same number of queues.
  • An applied profile can only be updated or deleted when it is not applied to an interface.

Example

Applying the QoS profile myprofile and the schedule profile myschedule to all interfaces that do not have an applied profile:

switch(config)# apply qos queue-profile myprofile schedule-profile myschedule