To create a routing policy, you can include the policy-options statement in the configuration:
-
policy-options {
-
name regular-expression;
- as-path-group group-name;
-
-
community name {
- invert-match;
- members [ community-ids ];
- }
-
-
condition condition-name {
- if-route-exists address table table-name;
- }
-
-
damping name {
- disable;
- half-life minutes;
- max-suppress minutes;
- reuse number;
- suppress number;
- }
-
-
policy-statement policy-name {
-
- term term-name {
-
- from {
- family;
-
match-conditions;
- policy subroutine-policy-name;
- prefix-list name;
- route-filter destination-prefix match-type <actions>;
- source-address-filter destination-prefix match-type <actions>;
- }
-
- to {
-
match-conditions;
- policy subroutine-policy-name;
- }
- then actions;
- default-action (accept | reject);
- }
- }
-
-
prefix-list name {
-
ip-addresses;
- }
- }
- protocols {
-
-
protocol-name {
-
import [ policy-names ];
-
export [ policy-names ];
- }
- }
This section includes the following minimum configurations: