A routing map can consist of multiple matching policies, multiple match rules and set-action actions.
Creating a matching-policy Clause
You should set at least one node to the permit mode in a routing policy; otherwise, all routes are filtered out.
The following example create a route map matching policy.
(Optional) Configuring a match Clause
A match clause defines matching rules related to route filters and attributes in a routing policy.
If no match clause is configured for a node in a routing policy, routes match the routing policy in this node. If one or more match clauses are configured in a node, the relationship between the clauses is "AND". This means that a route matches this node only when they match all the match clauses in this node.
If a match clause defines a filter that is not configured, all routes match this match clause by default.
The command set routing route-map <route-map-name> order <NUMBER> match xx can be used for configure routing map match clause. PICOS supports most of the route filter parameters, for details about each match clause, see Route Map Commands.
The following commands configure a match clause in the route map to match the community list:
(Optional) Configuring a set-action Clause
A set-action clause specifies the action of setting attributes for routes that have matched a routing policy node. If a node does not have a set-action clause configured, the node will only filter routes. If one or more set-action clauses are configured in a node, all the set-action clauses are applied to routes that have matched the node.
The command set routing route-map <route-map-name> order <NUMBER> set-action xx can be used for configure routing map set-action clause. PICOS supports to set most of the several route parameters, for details about each set-action clause, see Route Map Commands.
The following commands configure a match clause in the route map to match the community list and change the community value to 11:101:
Checking the Configuration
Run the run show routing route-map command to check information about the route-policy.