segment-list (Segment Routing view)

Function

The segment-list command creates a segment list for a candidate path and displays the segment list view.

The undo segment-list command deletes a segment list.

By default, no segment list is created for a candidate path.

Format

segment-list list-name

undo segment-list list-name

Parameters

Parameter Description Value
list-name

Specifies a segment list name.

The value is a string of 1 to 31 case-sensitive characters. When double quotation marks are used around the string, spaces are allowed in the string.

Views

Segment routing view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
srpolicy write

Usage Guidelines

Usage Scenario

To create a segment list for a candidate path, run the segment-list command in the system view. Then, you can run the segment-list command in the candidate path view to reference the segment list, thereby associating the segment list with the corresponding SR-MPLS TE Policy.

Example

# Create a segment list named list1.
<HUAWEI> system-view
[~HUAWEI] segment-routing
[*HUAWEI-segment-routing] segment-list list1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >