refuse

Function

The refuse command denies routes that meet matching rules of a route-filter.

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

Format

refuse

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 deny routes that meet matching rules of a route-filter, run the refuse command.

Example

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