[Contents] [Prev] [Next] [Index] [Report an Error]

Actions

Each term can include a then statement, which defines the actions to take if a route matches all the conditions in the from and to statements:

[edit]
policy-options {
policy-statement policy-name {
term term-name {
from {
family family-name;
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;
}
}
}
}

If a term does not have from and to statements, all routes are considered to match, and the actions apply to them all.

The then statement is optional.

You can specify one or more actions. There are three types of actions:

If you do not include a then statement, one of the following occurs:

The following sections discuss the following action attributes:


[Contents] [Prev] [Next] [Index] [Report an Error]