apply flex-algo

Function

The apply flex-algo command sets the Flex-Algo ID of a route.

The undo apply flex-algo command cancels the configuration.

By default, no Flex-Algo ID is set for a route.

Format

apply flex-algo flex-algo-id

undo apply flex-algo [ flex-algo-id ]

Parameters

Parameter Description Value
flex-algo-id

Specifies the Flex-Algo ID of a route.

The value is an integer that ranges from 128 to 255.

Views

Route-policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

Usage Scenario

Flex-Algo allows users to define an algorithm value (Flex-Algo ID) to identify a fixed algorithm and flexibly implement traffic engineering. In an SRv6 Flex-Algo route import scenario, you can run the apply flex-algo command to set a Flex-Algo ID.

Prerequisites

A route-policy has been configured using the route-policy command.

Configuration Impact

After a route matches a route-policy, the Flex-Algo ID of the route is changed.

Precautions

The apply flex-algo command takes effect only when IS-IS imports inter-process routes or BGP routes.

Example

# Define an apply clause for setting the route information attribute and set the Flex-Algo ID to 200.
<HUAWEI> system-view
[~HUAWEI] route-policy ma1 permit node 1
[*HUAWEI-route-policy] apply flex-algo 200
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >