Command Manual – Routing Protocol 
Quidway S3900 Series Ethernet Switches-Release 1510  Chapter 3  OSPF Configuration Commands
 
Huawei Technologies Proprietary 
3-33 
by any other protocol. If the routing-protocol argument is not specified, the imported 
routes generated by any protocol will be filtered. 
Related command: acl, ip ip-prefix. 
Example 
# Configure OSPF to advertise only the routing information permitted by acl 2000.  
<Quidway> system-view 
System View: return to User View with Ctrl+Z.  
[Quidway] acl number 2000 
[Quidway-acl-basic-2000] rule permit source 11.0.0.0  0.255.255.255 
[Quidway-acl-basic-2000] rule deny source any 
[Quidway-ospf-1] filter-policy 2000 export 
3.1.27  filter-policy import 
Syntax 
filter-policy  { acl-number | ip-prefix  ip-prefix-name | gateway  prefix-list-name } 
import 
undo filter-policy { acl-number | ip-prefix ip-prefix-name | gateway ip-prefix-name } 
import 
View 
OSPF view 
Parameter 
acl-number: Basic or advanced Access control list used for filtering the destination 
addresses of the routing information. 
ip-prefix-name: Name of the address prefix list used for filtering the destination 
addresses of the routing information. 
gateway ip-prefix-name: Specifies the name of the address prefix list used for filtering 
the addresses of the neighbor routers advertising the routing information. 
Description 
Use the filter-policy import command to configure the OSPF rules for filtering the 
routing information received.  
Use the undo filter-policy import command to cancel the filtering of the routing 
information received.  
By default, no filtering of the received routing information is performed. 
In some cases, it may be required that only the routing information meeting some 
conditions can be received. You can use the filter-policy command to set the filtering