index sid label

Function

The index sid label command configures a SID for a segment list.

The undo index sid label command deletes the SID configured for a segment list.

By default, no SID is configured for a segment list.

Format

index index sid label label

undo index index [ sid label label ]

Parameters

Parameter Description Value
index

Specifies a SID index. The index field determines the location of a SID in the label stack of a segment list. In the label stack, SIDs are placed by index in ascending order.

The value is an integer ranging from 0 to 4294967295.

label

Specifies a SID value.

The value is an integer ranging from 16 to 1048575.

Views

Segment list view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
srpolicy write

Usage Guidelines

Usage Scenario

To configure a SID for a segment list manually planned for an SR-MPLS TE Policy, run the index sid label command.

You can run the command multiple times to configure multiple SIDs. The system generates a segment list with a label stack containing SIDs that are placed by index in ascending order. If a candidate path in the SR-MPLS TE Policy is preferentially selected, traffic is forwarded using the segment list of the candidate path. A maximum of 10 SIDs can be configured for each segment list.

Example

# Configure SIDs for the segment list named list1.
<HUAWEI> system-view
[*HUAWEI] segment-routing
[*HUAWEI-segment-routing] segment-list list1
[*HUAWEI-segment-routing-segment-list-list1] index 10 sid label 1001
[*HUAWEI-segment-routing-segment-list-list1] index 20 sid label 1002
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >