Switch 7700 Command reference Guide, v2.0

Table Of Contents
IP Routing Policy Configuration Commands 241
route-policy Syntax
route-policy route_policy_name { permit | deny } node { node_number }
undo route-policy route_policy_name [ permit | deny | node
node_number ]
View
System view
Parameter
route_policy_name: Specifies the Route-policy name to identify one Route-policy
uniquely.
permit: Specify the match mode of the defined Route-policy node as permit
mode.
deny: Specifies the match mode of the defined Route-policy node as deny mode.
node: Node of the route policy.
node_number: Index of the node in the route-policy. When this route-policy is
used for routing information filtration, the node with smaller node-number will be
tested first.
Description
Use the route-policy command to create and enter the Route-policy view.
Use the undo route-policy command to delete the established Route-policy.
By default, no Route-policy is defined.
The route-policy command is used for route information filtration or route
policy. One Route-policy comprises some nodes and each node comprises some
match and apply sub-statements. The match sub-statement defines the match
rules of this node and the apply sub-statement defines the actions after passing
the filtration of this node. The filtering relationship between the match
sub-statements of the node is “and”, that is, all match sub-statements that meet
the node. The filtering relation between Route-policy nodes is "OR", i.e. passing
the filtering of one node means passing the filtering of this Route-policy. If the
information does not pass the filtration of any nodes, it cannot pass the filtration
of this Route-policy.
Related commands: if-match interface, if-match acl, if-match ip-prefix,
if-match ip next-hop, if-match cost, if-match tag, apply ip next-hop,
apply local-preference, apply cost, apply origin, apply tag.
Example
Configured one Route-policy policy1, whose node number is 10 and if-match
mode is permit, and enter Route policy view.
[SW7700]route-policy policy1 permit node 10
[SW7700-route-policy]