< Home

mpls te primary-lsp-constraint

Function

The mpls te primary-lsp-constraint command allows you to use a CR-LSP attribute template to set up a primary CR-LSP.

The undo mpls te primary-lsp-constraint command restores the default configuration.

No CR-LSP attribute template is used to set up a primary CR-LSP by default.

Format

mpls te primary-lsp-constraint { dynamic | lsp-attribute lsp-attribute-name }

undo mpls te primary-lsp-constraint

Parameters

Parameter Description Value
dynamic Indicates that when a CR-LSP attribute template is used to set up a primary CR-LSP, all attributes in the attribute template use the default values. -
lsp-attribute lsp-attribute-name Specifies the name of a CR-LSP attribute template. The value is an existing CR-LSP attribute template name.

Views

Tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

A CR-LSP attribute template already configured with the bandwidth and priority can be referenced to set up CR-LSPs in batches, greatly simplifying configurations of CR-LSPs.

If the TE attribute configured in the tunnel interface view and that configured through a CR-LSP attribute template coexist, the former takes precedence over the latter.

Example

# Use the attribute template named t1 to set up a primary CR-LSP.

<HUAWEI> system-view
[HUAWEI] interface tunnel 1
[HUAWEI-Tunnel1] mpls te primary-lsp-constraint lsp-attribute t1
[HUAWEI-Tunnel1] mpls te commit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >