The filter-policy export command filters imported routes.
The undo filter-policy export command restores the default setting.
By default, imported routes are not filtered.
filter-policy { acl6-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name } export [ protocol [ process-id ] ]
undo filter-policy [ acl6-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name ] export [ protocol [ process-id ] ]
Parameter | Description | Value |
---|---|---|
acl6-number | Specifies the ACL6 number. | The value is an integer that ranges from 2000 to 2999. |
acl6-name acl6-name | Specifies the name of an IPv6 named ACL. | The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter. |
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. |
protocol | Specifies the protocol from which the route is imported. You can use this parameter to filter the imported routes of specific protocols. If this parameter is not specified, all imported routes are filtered. | The value may be bgp, direct, isis, ospfv3, ripng, static, or unr. The specific value varies depending on the routing protocol supported by the device. |
process-id | Specifies the process ID of the protocol. | The value is an integer ranging from 1 to 65535. |
Usage Scenario
The filter-policy export command is only valid for the routes that are imported using the import-route command.
For an ACL, when the rule command is used to configure a filtering rule, the filtering rule is effective only with the source address range that is specified by the source parameter and with the time period that is specified by the time-range parameter.
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 external routes imported to OSPFv3 are converted to Type 5 LSAs (AS-external-LSAs) or Type 7 LSAs (NSSA-external-LSAs) and then are advertised to neighbors.