The filter-policy export command sets the OSPFv3 rules to filter the imported routes.
By default, the imported routes are not filtered.
filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } export [ direct | static | bgp | unr | { ripng | isis | ospfv3 } [ process-id ] ]
undo filter-policy [ { acl6-number |ipv6-prefix ipv6-prefix-name ] export [ direct | static | bgp | unr | { ripng | isis | ospfv3 } [ process-id ] ]
| 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 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. |
| direct | Specifies direct routes. | - |
| static | Specifies static routes. | - |
| bgp | Specifies BGP routes. | - |
| unr | Specifies UNR routes. | - |
| ripng | Specifies RIPng routes. | - |
| isis | Specifies IS-IS routes. | - |
| ospfv3 | Specifies OSPFv3 routes. | - |
| process-id | Specifies the process ID. | The value is an integer ranging from 1 to 65535. The default value is 1. |
Usage Scenario
The filter-policy export command is only valid for the routes that are imported by using the import-route command.
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.