service-template

Function

The service-template command configures a user-defined service profile.

The undo service-template command cancels the configuration.

By default, no user-defined service profile is configured.

Format

service-template service-template-name [ slot slot-number ]

undo service-template service-template-name

service-template service-template-name

Parameters

Parameter Description Value
service-template-name

Specifies the name of a user-defined service profile.

The value is a string of 1 to 31 characters.

slot slot-number

Specifies the ID of the slot for which a user-defined service template is configured. If no slot ID is specified, the service-template command will create a global service profile.

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

The value range is subject to the device display.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

The service-template command is used to configure a user-defined service template corresponding to a specific network header length. If no slot ID is specified in this command, the command configures a global service profile. If a slot ID is specified, the configured service profile can be used on interfaces that can be managed on the board in the slot.

A maximum of 256 service profiles are supported, irrespective of whether a slot ID is specified or not.

Configuration Impact

The forwarding engine processes packets based on packet types and forwarding types. For example, if the forwarding engine removes the MAC header from an IP packet, the length of the packet is different from the original one. As a result, if the forwarding engine performs queue scheduling or traffic shaping, traffic shaping is inaccurate.

To improve traffic shaping precise, run the network-header-length command to configure a network header length for packets.

Example

# Configure a service profile named template in the system view.
<HUAWEI> system-view
[~HUAWEI] service-template template
# Configure a service profile named template1 in slot 1.
<HUAWEI> system-view
[~HUAWEI] service-template template1 slot 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >