modify index

Function

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

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

Format

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

Parameters

Parameter Description Value
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.

-

sid

SID value.

-

label label-value

Specifies the 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.

-

index indexValue

Specifies the index value.

The value is an integer ranging from 1 to 96.

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 hop command is used to modify nodes for an explicit path.

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 index 1 to sid label 300 type adjacency
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >