modify sid

Function

The modify sid command is used to modify an existing hop in an explicit path.

By default, no node is modified in an explicit path.

Format

modify sid label contrastLabel index indexValue to { hop ipv4 [ exclude | include [ [ strict | loose ] | [ incoming | outgoing ] ] * ] | sid label label-value type { adjacency | prefix | binding-sid } }

Parameters

Parameter Description Value
index indexValue

Specifies the index value.

The value is an integer ranging from 1 to 96.

to

Specifies a range.

-

hop ipv4

Specifies an IPv4 address. If the strict mode is configured for the next hop, specify an interface address.

The value is in dotted decimal notation.

exclude

Excludes the ip-address1 node from an explicit path.

-

include

Includes the ip-address1 node on an explicit path.

-

strict

Indicates the strict explicit path.

-

loose

Indicates the loose explicit path.

-

incoming

Indicates the inbound interface.

-

outgoing

Indicates the outbound interface.

-

label contrastLabel

Specifies the label value.

The value is an integer ranging from 16 to 1048575.

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.

-

Views

Explicit path view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

The modify sid command is used to modify nodes for an explicit path.

Precautions

When you run this command to modify an existing hop in an explicit path, the IP address of another hop that already exists in the explicit path cannot be used.

Binding SID label type cannot be mixed with the IP type. When the IP address is changed to the SID type, the number of hops of the SID type cannot exceed 10. In addition, ensure that the RSVP-TE Tunnel interface on the local device uses the explicit path and cannot be changed to the label type.

Example

# modify an existing hop in an explicit path.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] explicit-path p1
[*HUAWEI-explicit-path-p1] next hop 10.0.0.125
[~HUAWEI-explicit-path-p1] modify sid label 200 index 2 to sid label 400 type adjacency
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >