Switch 7700 Configuration Guide
102 CHAPTER 5: ROUTING PROTOCOL OPERATION
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.
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
Tab le 52 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 ]
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
Set the routing cost of the routing
information
apply cost value
Cancel the routing cost of the
routing information
undo apply cost
set the cost type of the routing
information
apply cost-type [ internal | external ]
remove the setting of the cost type undo apply cost-type
Set the route origin of the BGP
routing information
apply origin { igp | egp as-number | incomplete }
Table 51 Define If-match Conditions
Operation Command