mpls te cspf preferred-igp

Function

The mpls te cspf preferred-igp command helps a device select a preferred IGP, its process, and its area or level during CSPF calculation.

The undo mpls te cspf preferred-igp command restores the default IGP protocol.

By default, a TEDB generated by OSPF is used.

Format

mpls te cspf preferred-igp isis [ isis-procId [ level-1 | level-2 ] ]

mpls te cspf preferred-igp ospf [ ospf-procId [ area { areaId | areaIdIpv4 } ] ]

undo mpls te cspf preferred-igp

Parameters

Parameter Description Value
isis-procId

Specifies the IS-IS process ID.

The value is an integer ranging from 1 to 4294967295.

level-1

Indicates that the TEDB generated by a Level-1 IS-IS device is preferred.

-

level-2

Indicates that the TEDB generated by a Level-2 IS-IS device is preferred.

-

ospf

Indicates that the TEDB generated by OSPF is preferred.

-

ospf-procId

Specifies the OSPF process ID.

The value is an integer ranging from 1 to 4294967295.

area

Specifies the OSPF area.

-

areaId

Specifies the OSPF area ID (Integer).

The value is an integer ranging from 0 to 4294967295.

areaIdIpv4

Specifies the OSPF area ID (IP address).

The value is an IP address, it is in dotted decimal notation.

isis

Indicates that the TEDB generated by IS-IS is preferred.

-

Views

MPLS view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

CSPF prefers a TEDB that OSPF generates before calculating a CR-LSP by default. When an OSPF TEDB is used to calculate a path, no IS-IS TEDB is used. If calculation based on the OSPF TEDB fails, CSPF recalculates the path based on an IS-IS TEDB.

The mpls te cspf preferred-igp command is used to configure CSPF to prefer an IS-IS TEDB to calculate a path for the CR-LSP. In this case, the OSPF TEDB is used to calculate a path only when CSPF fails to calculate a path based on the IS-IS TEDB.

Configuration Impact

This command is mutually exclusive with the mpls te cspf multi-instance shortest-path command.

Example

# Configure CSPF to prefer the TEDB generated by an IS-IS process 1 at Level-1 to calculate a CR-LSP.
<HUAWEI> system-view
[~HUAWEI] mpls lsr-id 1.1.1.1
[*HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] mpls te cspf
[*HUAWEI-mpls] mpls te cspf preferred-igp isis 1 level-1
# Configure CSPF to prefer an IS-IS TEDB to calculate a CR-LSP.
<HUAWEI> system-view
[~HUAWEI] mpls lsr-id 1.1.1.1
[*HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] mpls te cspf
[*HUAWEI-mpls] mpls te cspf preferred-igp isis
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >