< Home

filter-policy import (OSPFv3)

Function

The filter-policy import command sets the OSPFv3 rules to filter the received routes.

The undo filter-policy import command removes the filtering rules.

By default, the received routes are not filtered.

Format

filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } import

undo filter-policy [ acl6-number | ipv6-prefix ipv6-prefix-name ] import

Parameters

Parameter Description Value
acl6-number Specifies the ACL6 number. The value is an integer ranging from 2000 to 2999.
ipv6-prefix ipv6-prefix-name Specifies the name of the IPv6 address prefix list. The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The filter-policy import command only filters the routes calculated by OSPFv3. Routes that do not pass the filtering are neither added to the OSPFv3 routing table nor advertised.

Precautions

Creating an ACL6 or IPv6 prefix list before it is referenced is recommended. If a nonexistent ACL6 or IPv6 prefix list is referenced using the command, all IPv6 routes received by OSPFv3 are delivered to the IPv6 routing table.

Example

# Filter the received routes based on the IPv6 address prefix list named abc.

<sysname> system-view
[sysname] ospfv3 1
[sysname-ospfv3-1] filter-policy ipv6-prefix abc import
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >