leaf-list

Function

The leaf-list command enables a P2MP tunnel template to reference an existing leaf list.

The undo leaf-list command disables a P2MP tunnel template from referencing an existing leaf list.

By default, a P2MP tunnel template does not reference a leaf list.

Format

leaf-list leaf-list-name

undo leaf-list

Parameters

Parameter Description Value
leaf-list-name

Specifies the name of a leaf list to be referenced.

The name is a string of 1 to 31 case-sensitive characters. The name cannot start with an underscore (_) and when quotation marks are used around the string, spaces are allowed in the string.

Views

MPLS TE P2MP template view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

To use a leaf list to manage leaf nodes on an automatic P2MP TE tunnel, run the leaf-list command in the P2MP tunnel template view to reference an existing leaf list. This enables P2MP TE to use the configured leaf node addresses in the list and explicit paths to automatically establish P2MP TE LSPs.

Prerequisites

Ensure that the following tasks have been performed:

  • A leaf list has been configured using the mpls te leaf-list command.
  • A P2MP tunnel template has been configured using the mpls te p2mp-template command.

Example

# Create a leaf list named List1, a P2MP tunnel template named Template1, and reference the leaf list in the template view.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] mpls te p2mp-te
[*HUAWEI-mpls] quit
[*HUAWEI] mpls te leaf-list List1
[*HUAWEI-mpls-te-leaf-list-List1] destination 2.2.2.2
[*HUAWEI-mpls-te-leaf-list-List1] quit
[*HUAWEI] mpls te p2mp-template Template1
[*HUAWEI-te-p2mp-template-Template1] leaf-list List1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >