approve

Function

The approve command further filters the routes that meet the matching rules of the current if condition branch against the next if condition branch.

By default, no action is set for the routes that meet the matching rules of the current if condition branch.

Format

approve

Parameters

None

Views

Route-filter policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

Usage Scenario

Route-filters are used to filter routes based on sets or a single element and modify route attributes of the routes that meet matching rules. To further filter the routes that meet the matching rules of the current if condition branch against the next if condition branch, run the approve command; if the current if condition branch is the last one, these routes match the route-filter.

Example

# Configure a route-filter named r1 to allow the routes with Local_Pref greater than 100 to match the route-filter.
<HUAWEI> system
[~HUAWEI] xpl route-filter r1
[~HUAWEI-xpl-filter] if local-preference GE 100 then
[~HUAWEI-xpl-filter-if] approve
[~HUAWEI-xpl-filter-if] endif
[~HUAWEI-xpl-filter] end-filter
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >