traffic-statistics flex-algo

Function

The traffic-statistics flex-algo command enables traffic statistics collection for specified Flex-Algo LSPs.

The undo traffic-statistics flex-algo command disables traffic statistics collection for specified Flex-Algo LSPs.

By default, traffic statistics collection for all Flex-Algo LSPs is enabled.

Format

traffic-statistics flex-algo exclude { flex-algo-begin [ to flex-algo-end ] } &<1-10>

undo traffic-statistics flex-algo exclude { flex-algo-begin [ to flex-algo-end ] } &<1-10>

Parameters

Parameter Description Value
flex-algo-begin

Specifies the start ID of the flexible algorithm.

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

to flex-algo-end

Specifies the end ID of the flexible algorithm.

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

exclude

Indicates that the algorithm for collecting Flex-Algo LSP traffic statistics does not need to be enabled.

-

Views

Segment routing view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
segr write

Usage Guidelines

Usage Scenario

To exclude some Flex-Algo LSPs from statistics collection, run the traffic-statistics flex-algo exclude command in the SR view. To restore traffic statistics collection for all Flex-Algo LSPs, run the undo traffic-statistics flex-algo exclude command.

Example

# Globally enable traffic statistics collection for Flex-Algo LSPs.
<HUAWEI> system-view
[~HUAWEI] segment-routing
[*HUAWEI-segment-routing] traffic-statistics flex-algo exclude 128 to 130
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >