mpls te p2p-template

Function

The mpls te p2p-template command creates a P2P TE tunnel template and displays the template view.

The undo mpls te p2p-template command deletes a specific P2P TE tunnel template.

By default, no P2P TE tunnel template is created.

Format

mpls te p2p-template template-name

undo mpls te p2p-template template-name

Parameters

Parameter Description Value
template-name

Specifies the name of a P2P TE tunnel template to be referenced by a P2P TE tunnel.

The name is a string of 1 to 31 case-sensitive characters. The name cannot contain spaces or start with an underscore (_).

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

Before you create P2P TE tunnels in a batch, create a P2P TE tunnel template using the mpls te p2p-template command and configure parameters, such as bandwidth and the path limit, in the template. Then run the mpls te auto-primary-tunnel command to reference this template. The device can automatically use the parameters configured in the P2P TE tunnel template to create P2P TE tunnels in a batch.

Prerequisites

MPLS TE has been enabled globally using the mpls te command.

Precautions

To modify attributes of an automatic P2P TE tunnel, modify the attributes in the P2P TE tunnel template that is used to establish the tunnel.

Example

# Create a P2P TE tunnel template named Template1 and enable the route and label record function in the template view.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] mpls te p2p-template Template1
[*HUAWEI-te-p2p-template-Template1] record-route label
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >