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.
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. |
- |
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.
<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
<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