By Creating a Route-Policy, you can set attributes for the imported routes according to networking requirements.
A Route-Policy is used to match routes or certain route attributes, and to change these attributes when the matching rules are met.
A Route-Policy consists of multiple nodes. Each node is classified into the following clauses:
route-policy route-policy-name { permit | deny } node node
The parameter permit specifies a node in a Route-Policy in permit mode. If a route matches the node, the router performs actions defined by the apply clauses and the matching is complete.
The parameter deny specifies a node in a Route-Policy in deny mode. In deny mode, the apply clauses are not used. If a route entry matches all the if-match clauses of the node, the route is denied by the node and the next node is not matched. If the entry does not match all the clauses, the next node is matched.
If multiple nodes are defined in a Route-Policy, at least one of them should be in permit mode. When the parameter route-policy is used to filter routes, note the following:
When a Route-Policy is used to filter the routing information, the node with the smaller value of node is tested first.
description text