To define and apply a routing policy chain, you must include at least the following statements at the [edit policy-options] and [edit protocols] hierarchy levels. At the [edit protocols] hierarchy level, you can define a chain of policy names that are evaluated in order.
- [edit]
-
policy-options {
-
-
policy-statement policy-name {
-
- term term-name {
-
- from {
- family family-name;
-
match-conditions;
- prefix-list name;
- route-filter destination-prefix match-type <actions>;
- source-address-filter destination-prefix match-type <actions>;
- }
-
- to {
-
match-conditions;
- }
- then actions;
- }
- }
-
-
policy-statement policy-name {
-
- term term-name {
-
- from {
- family family-name;
-
match-conditions;
- prefix-list name;
- route-filter destination-prefix match-type <actions>;
- source-address-filter destination-prefix match-type <actions>;
- }
-
- to {
-
match-conditions;
- }
- then actions;
- }
- }
-
-
prefix-list name {
-
ip-addresses;
- }
- }
- protocols {
-
-
protocol-name {
-
import [ policy-names ];
-
export [ policy-names ];
- }
- }