![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/1/8b/18b1e1e7-4363-4706-bb94-6eba3a993996/18b1e1e7-4363-4706-bb94-6eba3a993996-bg4ad.png)
1197
display route-policy
Syntax display route-policy [ route-policy-name ]
View Any view
Parameters route-policy-name: Routing policy name, a string of 1 to 19 characters.
Description Use the
display route-policy command to display routing policy information.
All routing policy information will be displayed if no route-policy-name is specified.
Related commands: route-policy.
Examples # Display the information of routing policy 1.
<Sysname> display route-policy policy1
Route-policy : policy1
permit : 10
if-match ip-prefix abc
apply cost 120
if-match as-path
Syntax if-match as-path as-path-number&<1-16>
undo if-match as-path [ as-path-number&<1-16> ]
View Routing policy view
Parameters as-path-number: AS path ACL number, in the range of 1 to 256.
&<1-16>: Indicates the argument before it can be entered up to 16 times.
Description Use the
if-match as-path command to specify AS path ACL(s) for matching
against the AS path attribute of BGP routing information.
Use the
undo if-match as-path command to remove the match criterion.
The match criterion is not configured by default.
Table 284 Description on the fields of the display route-policy command.
Field Description
Route-policy Routing policy name
Permit permit mode: permit, deny
if-match ip-prefix abc Match criterion
apply cost 120 If the match criterion is satisfied, set the route cost to 120.