R2511-HP MSR Router Series Layer 3 - IP Routing Command Reference(V5)

295
if-match cost
Use if-match cost to match routing information having the specified cost.
Use undo if-match cost to remove the match criterion.
Syntax
if-match cost value
undo if-match cost
Default
No cost match criterion is configured.
Views
Routing policy view
Default command level
2: System level
Parameters
value: Specifies a cost in the range of 0 to 4294967295.
Examples
# Configure node 10 in permit mode of routing policy policy1 to permit routing information with a cost
of 8.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match cost 8
if-match extcommunity
Use if-match extcommunity to specify extended community lists for matching against the extended
community attribute of BGP routing information.
Use undo if-match extcommunity to remove the match criterion.
Syntax
if-match extcommunity ext-comm-list-number&<1-16>
undo if-match extcommunity [ ext-comm-list-number&<1-16> ]
Default
No match criterion is configured.
Views
Routing policy view
Default command level
2: System level
Parameters
ext-comm-list-number: Specifies an extended community list by its number in the range of 1 to 199.
&<1-16>: Indicates that the argument before it can be entered up to 16 times.