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.
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. |
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.