Operation Manual - Routing Protocol 
Quidway S6500 Series Ethernet Switches  Chapter 7  IP Routing Policy Configuration
 
Huawei Technologies Proprietary 
7-5 
Operation  Command 
Match the routing cost of the routing 
information 
if-match cost value 
Cancel the matched routing cost of the 
routing information 
undo if-match cost 
Match the tag domain of the OSPF 
routing information 
if-match tag value 
Cancel the tag domain of the matched 
OSPF routing information 
undo if-match tag 
 
By default, no matching will be performed.  
But please note: 
z  The if-match clauses for a node in the route-policy have the relationship of “AND” 
for matching. That is, the route must satisfy all the clauses to match the node 
before the actions specified by the apply clauses can be executed.  
z  If no if-match clauses are specified, all the routes will pass the filtering on the node. 
7.2.3  Defining apply clauses for a Route-policy 
The apply clauses specify actions, which are the configuration commands executed 
after a route satisfies the filtering conditions specified by the if-match clauses. Thereby, 
some attributes of the route can be modified. 
Perform the following configurations in Route policy view. 
Table 7-3 Defining apply clauses  
Operation  Command 
Add the specified AS number before the 
as-path series of the BGP routing 
information 
apply as-path as-number-1 
[ as-number-2 [ as-number-3 ... ] ] 
Cancel the specified AS number added 
before the as-path series of the BGP 
routing information  
undo apply as-path 
Set the community attribute in the BGP 
routing information 
apply community { [ { aa:nn | 
no-export-subconfed | no-advertise | 
no-export ]... } | [ additive | none ] 
Cancel the set community attribute in the 
BGP routing information 
undo apply community 
Set the next-hop address of the routing 
information 
apply ip next-hop ip-address