service-template (user queue template)

Function

The service-template command associates a precision compensation template with a user queue profile.

The undo service-template command deletes the association of a precision compensation template with a user queue profile.

By default, no precision compensation template is associated with user queues.

Format

service-template template-name

undo service-template template-name

Parameters

Parameter Description Value
template-name

Specifies the name of a precision compensation template for user queues.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported.

Views

User queue template

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

The length of user packets processed by the scheduling module changes, which may affect the accuracy of traffic shaping. To resolve this issue, a device supports precision compensation for packet length. A precision compensation value needs to be configured in a precision compensation template created in the system view.

To associate a precision compensation template with a user queue profile, run this command.

Prerequisites

A precision compensation template has been created using the service-template command in the system view, and a precision compensation value has been configured.

Example

# Associate a precision compensation template with a user queue profile named test.
<HUAWEI> system-view
[~HUAWEI] service-template test
[*HUAWEI-service-template-test-slot-all] commit
[~HUAWEI-service-template-test-slot-all] quit
[~HUAWEI] user-queue test
[*HUAWEI-user-queue-template-test] commit
[~HUAWEI-user-queue-template-test] service-template test
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >