Route policy action commands

action

Syntax

action {accept | next-entry | next-policy | reject}

no action

Context

config>router>policy-options>policy-statement>entry

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command configures actions to take for routes matching a route policy statement entry.

This command is required and must be entered for the entry to be active.

A route policy entry without the action command is considered incomplete and is inactive.

The no form of this command deletes the action context from the entry.

Default

no action

Parameters

accept

Specifies that packets matching the entry match criteria are accepted and processed appropriately.

next-entry

Specifies that the actions specified would be taken and policy evaluation would continue with next policy entry (if any others are specified).

next-policy

Specifies that the actions specified would be made to the route attributes and policy evaluation would continue with next route policy (if any others are specified).

reject

Specifies that packets matching the entry match criteria would be rejected.

default-action

Syntax

default-action {accept | next-entry| reject}

no default-action

Context

config>router>policy-options>policy-statement

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

Commands in this context configure actions for packets that do not match any route policy statement entries when the accept parameter is specified.

The default action clause can be set to all available action states including: accept, reject, next-entry and next-policy. If the action states accept or reject then the policy evaluation terminates and the appropriate result is returned.

If a default action is defined and no match occurred with the entries in the policy, the default action clause is used.

If a default action is defined and one or more matches occurred with the entries of the policy, the default action is not used.

The no form of this command deletes the default-action context for the policy statement.

Default

no default-action

Parameters

accept

Specifies that packets matching the entry match criteria are accepted and processed appropriately.

next-entry

Specifies that the actions specified would be taken and policy evaluation would continue with next policy entry (if any others are specified).

reject

Specifies that packets matching the entry match criteria would be rejected.