Command Manual – Routing Protocol 
Quidway S8500 Series Routing Switches  Chapter 6  IP Routing Policy Configuration Commands
 
Huawei Technologies Proprietary 
6-3 
If the matching conditions defined in the Route-policy are satisfied, the BGP community 
attribute is set. 
Related command: ip community-list,  if-match community-list,  route-policy, 
display bgp routing-table community. 
Example 
# Configure one Route-policy setcommunity, whose node serial number is 16 and 
match mode is permit, and enter Route policy view to set match conditions and attribute 
modification actions to be executed. 
[Quidway] route-policy permit node 16 
[Quidway-route-policy] if-match as-path 8 
[Quidway-route-policy] apply community no-export 
6.1.3  apply cost  
Syntax 
apply cost value 
undo apply cost 
View 
Route policy view 
Parameter 
value: Specifies the route cost value of route information. 
Description 
Use the apply cost command to configure the route cost value of route information. 
Use the undo apply cost command to cancel the Apply sub-statement.  
By default, no Apply sub-statement is defined. 
This command is one Apply sub-statement of Route-policy. It configures the route cost 
value of the routing information that passes the filtration. 
Related command: if-match interface, if-match acl, if-match ip-prefix, if-match ip 
next-hop,  if-match cost,  if-match tag, route-policy, apply ip next-hop, apply 
local-preference, apply origin, apply tag. 
Example 
# Define one Apply sub-statement. When it is used for setting route information 
attribute, it sets the route metric value of route information as 120. 
[Quidway-route-policy] apply cost 120