add sid label

Function

The add sid label command adds a specified node to an SR-MPLS TE explicit path.

By default, no node is add to an explicit path.

Format

add sid label label-value type { adjacency | prefix | binding-sid } { after | before } { hop contrastIpv4 | index indexValue | sid label contrastLabel index indexValue }

Parameters

Parameter Description Value
label-value

Label value.

The value is an integer ranging from 16 to 1048575.

type

The type of segment identifier.

-

adjacency

Adjacency SID.

-

prefix

Prefix SID.

-

binding-sid

Binding SID.

-

after

Adds the ip-address1 node after the node ip-address2 node.

-

before

Adds the ip-address1 node before the ip-address2 node.

-

hop contrastIpv4

Hop ip address.

The value is in dotted decimal notation.

index indexValue

Index value.

The value is an integer ranging from 1 to 96.

sid

SID value.

-

label contrastLabel

Label value.

The value is an integer ranging from 16 to 1048575.

Views

Explicit path view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

The command takes effect only if the node resides on the explicit path, and no interface on the node is using this explicit path.

Example

# Add a specified node to an SR-MPLS TE explicit path.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] explicit-path p1
[*HUAWEI-explicit-path-p1] next sid label 100 type adjacency
[~HUAWEI-explicit-path-p1] add sid label 200 type adjacency after sid label 100 index 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >