Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleNOTE:

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 <NUMBERmatch 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.

...

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 <NUMBERset-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.

...

Code Block
admin@Xorplus# set routing community-list standard COMMUNITY1 permit community 100:100
admin@Xorplus# set routing route-map GlobalMap order 10 match community COMMUNITY1
admin@Xorplus# set routing route-map GlobalMap order 10 matching-policy permit
admin@Xorplus# set routing route-map GlobalMap order 10 set-action community 11:101
admin@Xorplus# commit

Checking the Configuration

Run the run show routing route-map command to check information about the route-policy. 

Code Block
admin@Xorplus# run show routing route-map
ZEBRA:
route-map: GlobalMap Invoked: 0 Optimization: disabled Processed Change: false
 permit, sequence 10 Invoked 0
  Match clauses:
  Set clauses:
  Call clause:
  Action:
    Exit routemap
OSPF:
route-map: GlobalMap Invoked: 0 Optimization: disabled Processed Change: false
 permit, sequence 10 Invoked 0
  Match clauses:
  Set clauses:
  Call clause:
  Action:
    Exit routemap
BGP:
route-map: GlobalMap Invoked: 0 Optimization: disabled Processed Change: false
 permit, sequence 10 Invoked 0
  Match clauses:
    community COMMUNITY1
  Set clauses:
    community 11:101
  Call clause:
  Action:
    Exit routemap