< Home

tnl-policy (PW template view)

Function

The tnl-policy command configures a tunnel policy for a PW template.

The undo tnl-policy command deletes the tunnel policy configured for a PW template.

By default, no tunnel policy is configured for a PW template.

Format

tnl-policy policy-name

undo tnl-policy

Parameters

Parameter Description Value

policy-name

Specifies the tunnel policy name of a PW.

The value is a string of 1 to 39 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

PW template view

Default Level

2: Configuration level

Usage Guidelines

The tnl-policy command specifies a PWE3 tunnel policy based on which a PW selects a tunnel to be associated with.

If no policy is configured, an LSP tunnel is selected and load balancing is not performed.

Example

# Configure a tunnel policy named policy1 for a PW template named pwt.

<HUAWEI> system-view
[HUAWEI] pw-template pwt
[HUAWEI-pw-template-pwt] tnl-policy policy1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >