Switch 7700 Configuration Guide, v2

IP Routing Policy 145
By default, no matching is performed.
Note that:
The if-match clauses for a node in the route policy require that the route
satisfy all the clauses to match the node before the actions specified by the
apply clauses can be executed.
If no if-match clauses are specified, all the routes pass the filtering on the
node.
Define Apply Clauses for a Route Policy
The apply clauses specify actions, which are the configuration commands
executed after a route satisfies the filtering conditions that are specified in the
if-match clauses. In this way, some attributes of the route can be modified.
Perform the following configurations in Route policy view.
Cancel the matched next-hop
of the routing information
undo if-match ip next-hop [ip-prefix ip-prefix-name ]
Match the routing cost of the
routing information
if-match cost cost
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
Table 124 Define Apply Clauses
Operation Command
Modify an AS path for BGP routes. apply as-path as-number-1 [ as-number-2 [
as-number-3 ... ] ]
Cancel modification of an AS path
for BGP routes.
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 [ ip-address ] | acl
acl-number }
Cancel the next-hop address of the
routing information
undo apply ip next-hop [ ip-address [ ip-address ] | acl
acl-number ]
Import the route to IS-IS Level 1,
Level 2, or Level 1-2
apply isis [ level-1 | level-2 | level-1-2 ]
Remove the function of importing
the route to IS-IS
undo apply isis
Set the local preference of the BGP
routing information
apply local-preference localpref
Cancel the local preference of the
BGP routing information
undo apply local-preference
Table 123 Define If-match Conditions
Operation Command