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.

Any route policy entry without the action command will be considered incomplete and will be inactive.

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

Default

no action

Parameters

accept

Specifies packets matching the entry match criteria will be accepted and processed appropriately.

next-entry

Specifies that the actions specified would be taken and policy evaluation would continue with the 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 the next route policy (if any others are specified).

reject

Specifies packets matching the entry match criteria will be rejected.

as-path

Syntax

as-path {add | replace} name

no as-path

Context

config>router>policy-options>policy-statement>default-action

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

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command assigns a BGP AS path list to routes matching the route policy statement entry.

If no AS path list is specified, the AS path attribute is not changed.

The no form of this command disables the AS path list editing action from the route policy entry.

Default

no as-path

Parameters

add

Specifies that the AS path list is to be prepended to an existing AS list.

replace

Specifies AS path list replaces any existing as path attribute.

name

Specifies the AS path list name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, and so on), the entire string must be enclosed within double quotes. The name specified must already be defined.

as-path-prepend

Syntax

as-path-prepend as-num [repeat]

no as-path-prepend

Context

config>router>policy-options>policy-statement>default-action

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

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command prepends a BGP ASN once or multiple times to the AS path attribute of routes matching the route policy statement entry.

If an ASN is not configured, the AS path is not changed.

If the optional number is specified, the ASN is prepended as many times as indicated by the number.

The no form of this command disables the AS path prepend action from the route policy entry.

Default

no as-path-prepend

Parameters

as-num

Specifies the ASN to prepend expressed as a decimal integer.

Values

1 to 4294967295

repeat

Specifies the number of times to prepend the specified ASN expressed as a decimal integer.

Values

1 to 50

community

Syntax

community {{add name [remove name]} | {remove name [add name]} | {replace name}}

no community

Context

config>router>policy-options>policy-statement>default-action

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

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command adds or removes a BGP community list to or from routes matching the route policy statement entry.

If no community list is specified, the community path attribute is not changed.

The community list changes the community path attribute according to the add and remove keywords.

The no form of this command disables the action to edit the community path attribute for the route policy entry.

Default

no community

Parameters

add

Keyword to specify that the community list is added to any existing list of communities.

remove

Keyword to specify that the community list is removed from the existing list of communities.

replace

Keyword to specify that the community list replaces any existing community attribute.

name

Specifies the community list name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, and so on), the entire string must be enclosed within double quotes.

damping

Syntax

damping {name | none}

no damping

Context

config>router>policy-options>policy-statement>default-action

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

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command configures a damping profile used for routes matching the route policy statement entry.

If no damping criteria is specified, the default damping profile is used.

The no form of this command removes the damping profile associated with the route policy entry.

Default

no damping

Parameters

name

Specifies the damping profile name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, and so on), the entire string must be enclosed within double quotes. The name specified must already be defined.

none

Keyword to disable route damping for the route policy.

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 routes 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, the policy evaluation terminates and the appropriate result is returned.

If a default action is defined and no matches 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 then 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

Keyword to specify that route packets matching the entry match criteria will be accepted and propagated and processed appropriately.

next-entry

Keyword to specify that the actions specified will be made to the route attributes taken, and policy evaluation will continue with the next policy entry (if any others are specified).

reject

Keyword to specify that routes or packets matching the entry match criteria will be rejected.

local-preference

Syntax

local-preference preference

no local-preference

Context

config>router>policy-options>policy-statement>default-action

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

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command assigns a BGP local preference to routes matching a route policy statement entry.

If no local preference is specified, the BGP configured local preference is used.

The no form of this command disables assigning a local preference in the route policy entry.

Default

no local-preference

Parameters

preference

Specifies the local preference expressed as a decimal integer.

Values

0 to 4294967295

metric

Syntax

metric {add | subtract | set} metric

no metric

Context

config>router>policy-options>policy-statement>default-action

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

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command assigns a metric to routes matching the policy statement entry.

If no metric is specified, the configured metric is used. If neither is defined, no metric will be advertised.

The value assigned for the metric by the route policy is controlled by the required keywords.

The no form of this command disables assigning a metric in the route policy entry.

Default

no metric

Parameters

add

Keyword to add the specified integer to any existing metric. If the result of the addition results in a number greater than 4294967295, the value 4294967295 is used.

subtract

Keyword to subtract the specified integer from any existing metric. If the result of the subtraction results in a number less than 0, the value of 0 is used.

set

Keyword to replace any existing metric with the specified integer.

metric

Specifies the metric modifier expressed as a decimal integer.

Values

0 to 4294967295

next-hop-self

Syntax

[no] next-hop-self

Context

config>router>policy-options>policy-statement>default-action

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

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command advertises a next hop IP address belonging to this router even if a third-party next hop is available to routes matching the policy statement entry.

The no form of this command disables advertising the next-hop-self option for the route policy entry.

Default

no next-hop-self

origin

Syntax

origin {igp | egp | incomplete}

no origin

Context

config>router>policy-options>policy-statement>default-action

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

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command sets the BGP origin assigned to routes exported into BGP.

If the routes are exported into protocols other than BGP, this option is ignored.

The no form of this command disables setting the BGP origin for the route policy entry.

Default

no origin

Parameters

igp

Keyword to set the path information as originating within the local AS.

egp

Keyword to set the path information as originating in another AS.

incomplete

Keyword to set the path information as learned by some other means.

preference

Syntax

preference preference

no preference

Context

config>router>policy-options>policy-statement>default-action

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

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command assigns a route preference to routes matching the route policy statement entry.

If no preference is specified, the default route table manager (RTM) preference for the protocol is used.

The no form of this command disables setting an RTM preference in the route policy entry.

Default

no preference

Parameters

preference

Specifies the route preference, expressed as a decimal integer.

Values

1 to 255 (0 represents unset - MIB only)

tag

Syntax

tag tag

no tag

Context

config>router>policy-options>policy-statement>default-action

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

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command assigns an OSPF tag to routes matching the entry. The tag value is used to apply a tag to a route for either an OSPF or RIP route. A hexadecimal value of 4 octets can be entered.

For OSPF, all four octets can be used.

For RIP, only the two most significant octets are used if more than two octets are configured.

The no form of this command removes the tag.

Default

no tag

Parameters

tag

Specifies an OSPF or IS-IS tag assigned to routes matching the entry.

Values

Accepts decimal or hex formats:

OSPF and IS-IS:

[0x0..0xFFFFFFFF]H

RIP:

[0x0..0xFFFF]H

type

Syntax

type {type}

no type

Context

config>router>policy-options>policy-statement>default-action

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

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command assigns an OSPF type metric to routes matching the route policy statement entry and being exported into OSPF.

The no form of this command disables assigning an OSPF type in the route policy entry.

Default

no type

Parameters

type

Specifies the OSPF type metric.

Values

1 — Set as OSPF routes with type 1 LSAs

2 — set as OSPF routes with type 2 LSAs