|
: Filters command output by specifying a regular expression. For more information about regular
expressions, see
Fundamentals Configuration Guide
.
begin
: Displays the first line that matches the specified regular expression and all lines that follow.
exclude
: Displays all lines that do not match the specified regular expression.
include
: Displays all lines that match the specified regular expression.
regular-expression
: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use
display route-policy
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
Table 94 Command output.
Field Description
Route-policy Routing
policy
name.
Permit
Match mode of routing policy node 10.
if-match ip-prefix abc
Match criterion.
apply cost 120
If the match criterion is satisfied, set a cost of 120 for routing information.
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
Default level
2: System level
Parameters
as-path-number
: AS path list number, in the range of 1 to 256.
&<1-16>
: Indicates the argument before it can be entered up to 16 times.
Description
Use
if-match
as-path
to specify AS path lists for matching against the AS_PATH attribute of BGP
routing information.
Use
undo if-match as-path
to remove the match criterion.
420