local-block

Function

The local-block command configures a segment routing local block (SRLB) range.

The undo local-block command deletes an SRLB range.

By default, no SRLB range is configured.

Format

local-block begin-value end-value [ ignore-conflict ]

undo local-block [ begin-value end-value [ ignore-conflict ] ]

Parameters

Parameter Description Value
begin-value

Specifies the start value of the SRLB range.

The value varies according to the device.

end-value

Specifies the end value of the SRLB range.

The value varies according to the device.

The maximum SRLB length is 65535.

ignore-conflict

Whether to ignore a conflict.

-

Views

Segment routing view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
segr write

Usage Guidelines

Usage Scenario

Binding SIDs can be configured for SR-MPLS TE Policies. They can be used to recalculate SR-MPLS TE paths like other types of SIDs. To prevent conflicts between binding SIDs and other types of SIDs, run the local-block command to configure an SRLB range so that binding SIDs can be allocated within this range.

If a controller is deployed, the SRLB information configured on the local device can be advertised by IS-IS to BGP-LS, which then reports the SRLB information to the controller.

If the ignore-conflict parameter is specified in the local-block command and a label conflict occurs, the configuration is forcibly delivered but does not occupy label resources. This function is mainly used for pre-deployment. The configuration takes effect after the device is restarted.

Precautions

If the SRLB is configured and the Binding SID carried by the BGP-provided SR-MPLS TE Policy is in the SRLB range, then:

  1. After the SRLB configuration is deleted, the same SRLB or a segment of the original SRLB is reconfigured. The configuration fails.
  2. The above scenario configuration rollback will also fail.

    If the system displays a message indicating that the SRLB is used, run the display segment-routing local-block command to view the SRLB ranges that can be set. Alternatively, delete unwanted configurations related to the used label to release the label space.

Example

# Configure an SRLB. (The value range of SRLB changes dynamically, depending on the actual situation of the equipment. Here is an example only.)
<HUAWEI> system-view
[~HUAWEI] segment-routing
[*HUAWEI-segment-routing] local-block 51000 52000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >