< Home

reset route-policy counters

Function

The reset route-policy command resets route-policy counters.

Format

reset route-policy route-policy-name counters

Parameters

Parameter Description Value
route-policy-name Specifies the name of a route-policy. The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The route-policy is used to filter routes and set the attributes of a route that matches a route-policy. When a route-policy filters routes, the system records the number of routes that match the route-policy nodes. You can run the display route-policy to view the numbers.

The reset route-policy counters command clears the number of routes which match or do not match the route-policy. You can run both the reset route-policy counters command and the display route-policy command to instruct whether to record the number of routes matching a specified route-policy.

Configuration Impact

The reset route-policy counters command clears the number of routes which match or do not match the route-policy. After that, the number cannot be restored.

Example

# Reset the counters of a route-policy named policy1.

<HUAWEI> reset route-policy policy1 counters
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >