finish

Function

The finish command completes route filtering and allows the routes that meet matching rules to match the route-filter.

By default, no action clause is set for the routes that meet matching rules.

Format

finish

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 complete route filtering and allow the routes that meet matching rules to match a route-filter, run the finish command.

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] finish
[~HUAWEI-xpl-filter-if] endif
[~HUAWEI-xpl-filter] if local-preference le 50 then
[~HUAWEI-xpl-filter-if] apply community none
[~HUAWEI-xpl-filter-if] endif
[~HUAWEI-xpl-filter] end-filter
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >