You need to perform a series of actions on routes.
The JUNOS routing-policy language has several different ways of
chaining policies together. One way is to list more than one policy in the
[edit protocols bgp group
set export [
block-private remove-communities send-statics]
A second way is to configure policy evaluation so that it explicitly jumps to the next policy when a match occurs:
[edit policy-options policy-statement
set then local-preferenceaviva@router1#
set then community setaviva@router1#
set then next policy
Larger networks typically require a number of routing policies to handle an ISP's peer and customer relationship or to handle different organizations within a large enterprise network. You have to make the design decision about whether to create longer policies with many terms or whether to create a number of smaller policies and chain them together. Because policy language is so critical to the operation of your network and your business, and because policy language can get complex quickly and might have unexpected results, it is good practice to design policies to be as straightforward as possible.
This recipe illustrates two ways of creating a number of smaller policies and chaining them together. The first command,
set export, chains together three policies that have been configured ...