35. policy-options Commands

configure
— apply-groups reference
— apply-groups-exclude reference
as-path string
— apply-groups reference
— apply-groups-exclude reference
expression string
as-path-group string
— apply-groups reference
— apply-groups-exclude reference
entry number
— apply-groups reference
— apply-groups-exclude reference
expression string
community string
— apply-groups reference
— apply-groups-exclude reference
— apply-groups reference
— apply-groups-exclude reference
exact boolean
expr string
member string
damping string
— apply-groups reference
— apply-groups-exclude reference
half-life number
max-suppress number
reuse number
suppress number
name string
address (ipv4-address-no-zone | ipv6-address-no-zone)
— apply-groups reference
— apply-groups-exclude reference
decimal decimal-number
number number
value string
policy-statement string
— apply-groups reference
— apply-groups-exclude reference
action-type keyword
add-paths-send-limit (number | keyword)
admin-tag-policy (param-midstring-64 | string)
advertise-label keyword
add (number | string)
set (keyword | number | string)
— apply-groups reference
— apply-groups-exclude reference
as-path
add (param-midstring | string)
replace (param-midstring | string)
as-path (number | string | keyword)
repeat (number | string)
bgp-high-priority boolean
bgp-leak boolean
bgp-med
adjust string
set (keyword | number | string)
prefer-aigp boolean
value (string | number)
add (param-midstring-64 | string)
— apply-groups reference
— apply-groups-exclude reference
remove (param-midstring-64 | string)
replace (param-midstring-64 | string)
create-udp-tunnel boolean
damping (keyword | param-midstring | string)
dest-class number
egress-statistics boolean
flex-algo (string | number)
ingress-statistics boolean
install-backup-path boolean
local-preference (number | string)
metric
add (number | string)
set (number | string)
subtract (number | string)
fwd-service string
ip-int-name string
nat-policy (param-midstring | string)
next-hop (keyword | ipv4-address-no-zone | ipv6-address-no-zone | string)
origin (keyword | string)
origin-validation-state (keyword | string)
preference (number | string)
resolve-static boolean
route-table-install boolean
source-class number
prefer-igp boolean
value (string | number)
sr-maintenance-policy (param-midstring | string)
sticky-ecmp boolean
tag (number | string)
type (number | string)
description string
entry number
action
action-type keyword
add-paths-send-limit (number | keyword)
admin-tag-policy (param-midstring-64 | string)
advertise-label keyword
add (number | string)
set (keyword | number | string)
— apply-groups reference
— apply-groups-exclude reference
as-path
add (param-midstring | string)
replace (param-midstring | string)
as-path (number | string | keyword)
repeat (number | string)
bgp-high-priority boolean
bgp-leak boolean
bgp-med
adjust string
set (keyword | number | string)
prefer-aigp boolean
value (string | number)
add (param-midstring-64 | string)
— apply-groups reference
— apply-groups-exclude reference
remove (param-midstring-64 | string)
replace (param-midstring-64 | string)
create-udp-tunnel boolean
damping (keyword | param-midstring | string)
dest-class number
egress-statistics boolean
flex-algo (string | number)
fc keyword
priority keyword
ingress-statistics boolean
install-backup-path boolean
local-preference (number | string)
metric
add (number | string)
set (number | string)
subtract (number | string)
fwd-service string
ip-int-name string
nat-policy (param-midstring | string)
next-hop (keyword | ipv4-address-no-zone | ipv6-address-no-zone | string)
origin (keyword | string)
origin-validation-state (keyword | string)
preference (number | string)
resolve-static boolean
route-table-install boolean
source-class number
prefer-igp boolean
value (string | number)
sr-maintenance-policy (param-midstring | string)
sticky-ecmp boolean
tag (number | string)
type (number | string)
— apply-groups reference
— apply-groups-exclude reference
— apply-groups reference
— apply-groups-exclude reference
route-exists string
description string
from
— apply-groups reference
— apply-groups-exclude reference
area string
as-path
group (param-midstring | string)
length
qualifier keyword
unique boolean
value (number | string)
name (param-midstring | string)
ip-address string
none-cluster-list boolean
color number
count
qualifier keyword
type keyword
value (number | string)
expression string
name (param-midstring-64 | string)
distinguisher number
endpoint (ipv4-address-no-zone | ipv6-address-no-zone)
evpn-type keyword
external boolean
family keyword
dest (param-midstring | string)
source (param-midstring | string)
group-address (param-midstring | string)
host-ip (param-midstring | string)
interface (named-item | interface-name | interface-name | interface-name)
ip-int-name string
service string
level number
qualifier keyword
value (number | string)
metric
qualifier keyword
value (number | string)
mvpn-type keyword
ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)
prefix-list (param-midstring | string)
ip-address (ipv4-address-no-zone | ipv6-address-no-zone)
prefix-list (param-midstring | string)
origin keyword
ospf-type number
path-type keyword
policy (string | string)
name string
address (ipv4-address-no-zone | ipv6-address-no-zone)
— apply-groups reference
— apply-groups-exclude reference
decimal decimal-number
number number
value string
prefix-list (param-midstring | string)
instance (keyword | number)
name keyword
ip-address (ipv4-address-no-zone | ipv6-address-no-zone)
prefix-list (param-midstring | string)
state keyword
tag (number | keyword)
to
— apply-groups reference
— apply-groups-exclude reference
level number
ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)
prefix-list (param-midstring | string)
prefix-list (param-midstring | string)
instance (keyword | number)
name keyword
entry-type keyword
named-entry string
action
action-type keyword
add-paths-send-limit (number | keyword)
admin-tag-policy (param-midstring-64 | string)
advertise-label keyword
add (number | string)
set (keyword | number | string)
— apply-groups reference
— apply-groups-exclude reference
as-path
add (param-midstring | string)
replace (param-midstring | string)
as-path (number | string | keyword)
repeat (number | string)
bgp-high-priority boolean
bgp-leak boolean
bgp-med
adjust string
set (keyword | number | string)
prefer-aigp boolean
value (string | number)
add (param-midstring-64 | string)
— apply-groups reference
— apply-groups-exclude reference
remove (param-midstring-64 | string)
replace (param-midstring-64 | string)
create-udp-tunnel boolean
damping (keyword | param-midstring | string)
dest-class number
egress-statistics boolean
flex-algo (string | number)
fc keyword
priority keyword
ingress-statistics boolean
install-backup-path boolean
local-preference (number | string)
metric
add (number | string)
set (number | string)
subtract (number | string)
fwd-service string
ip-int-name string
nat-policy (param-midstring | string)
next-hop (keyword | ipv4-address-no-zone | ipv6-address-no-zone | string)
origin (keyword | string)
origin-validation-state (keyword | string)
preference (number | string)
resolve-static boolean
route-table-install boolean
source-class number
prefer-igp boolean
value (string | number)
sr-maintenance-policy (param-midstring | string)
sticky-ecmp boolean
tag (number | string)
type (number | string)
— apply-groups reference
— apply-groups-exclude reference
— apply-groups reference
— apply-groups-exclude reference
route-exists string
description string
from
— apply-groups reference
— apply-groups-exclude reference
area string
as-path
group (param-midstring | string)
length
qualifier keyword
unique boolean
value (number | string)
name (param-midstring | string)
ip-address string
none-cluster-list boolean
color number
count
qualifier keyword
type keyword
value (number | string)
expression string
name (param-midstring-64 | string)
distinguisher number
endpoint (ipv4-address-no-zone | ipv6-address-no-zone)
evpn-type keyword
external boolean
family keyword
dest (param-midstring | string)
source (param-midstring | string)
group-address (param-midstring | string)
host-ip (param-midstring | string)
interface (named-item | interface-name | interface-name | interface-name)
ip-int-name string
service string
level number
qualifier keyword
value (number | string)
metric
qualifier keyword
value (number | string)
mvpn-type keyword
ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)
prefix-list (param-midstring | string)
ip-address (ipv4-address-no-zone | ipv6-address-no-zone)
prefix-list (param-midstring | string)
origin keyword
ospf-type number
path-type keyword
policy (string | string)
name string
address (ipv4-address-no-zone | ipv6-address-no-zone)
— apply-groups reference
— apply-groups-exclude reference
decimal decimal-number
number number
value string
prefix-list (param-midstring | string)
instance (keyword | number)
name keyword
ip-address (ipv4-address-no-zone | ipv6-address-no-zone)
prefix-list (param-midstring | string)
state keyword
tag (number | keyword)
to
— apply-groups reference
— apply-groups-exclude reference
level number
ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)
prefix-list (param-midstring | string)
prefix-list (param-midstring | string)
instance (keyword | number)
name keyword
prefix-list string
— apply-groups reference
— apply-groups-exclude reference
prefix (ipv4-prefix | ipv6-prefix) type keyword
— apply-groups reference
— apply-groups-exclude reference
end-length number
mask-pattern (ipv4-address-no-zone | ipv6-address-no-zone)
start-length number
through-length number
to-prefix (ipv4-prefix | ipv6-prefix)

35.1. policy-options Command Descriptions

policy-options

Synopsis

Enter the policy-options context

Introduced

16.0.R1

Platforms

All

as-path [name] string

Synopsis

Enter the as-path list instance

Tree
Introduced

16.0.R1

Platforms

All

[name] string

Synopsis

AS Path name

String Length

1 to 32

Notes

This element is part of a list key.

Introduced

16.0.R1

Platforms

All

expression string

Synopsis

Regular expression string

String Length

1 to 255

Introduced

16.0.R1

Platforms

All

as-path-group [name] string

Synopsis

Enter the as-path-group list instance

Introduced

16.0.R1

Platforms

All

[name] string

Synopsis

AS Path Group name

String Length

1 to 32

Notes

This element is part of a list key.

Introduced

16.0.R1

Platforms

All

entry [entry] number

Synopsis

Enter the entry list instance

Tree
Introduced

16.0.R1

Platforms

All

[entry] number

Synopsis

ID to uniquely identify this AS Path entry

Range

1 to 128

Notes

This element is part of a list key.

Introduced

16.0.R1

Platforms

All

expression string

Synopsis

Regular expression string

String Length

1 to 255

Notes

This element is mandatory.

Introduced

16.0.R1

Platforms

All

community [name] string

Synopsis

Enter the community list instance

Tree
Introduced

16.0.R1

Platforms

All

[name] string

Synopsis

Name of a community

String Length

1 to 64

Notes

This element is part of a list key.

Introduced

16.0.R1

Platforms

All

expression

Synopsis

Enable the expression context

Introduced

16.0.R1

Platforms

All

exact boolean

Synopsis

Match exactly for the specified expression

Tree
Default

false

Introduced

16.0.R1

Platforms

All

expr string

Synopsis

Community expression value

Tree
String Length

1 to 900

Notes

This element is mandatory.

Introduced

16.0.R1

Platforms

All

member [member] string

Synopsis

Add a list entry for member

Context
Tree
Introduced

16.0.R1

Platforms

All

[member] string

Synopsis

Community member value

Context
String Length

1 to 72

Notes

This element is part of a list key.

Introduced

16.0.R1

Platforms

All

damping [name] string

Synopsis

Enter the damping list instance

Tree
Introduced

16.0.R1

Platforms

All

[name] string

Synopsis

Damping profile name

String Length

1 to 32

Notes

This element is part of a list key.

Introduced

16.0.R1

Platforms

All

half-life number

Synopsis

Time after which the Figure of Merit value is halved

Tree
Range

1 to 45

Units

minutes

Introduced

16.0.R1

Platforms

All

max-suppress number

Synopsis

Maximum time for a route to remain suppressed

Range

1 to 720

Units

minutes

Introduced

16.0.R1

Platforms

All

reuse number

Synopsis

Value below which a suppressed route can be used again

Context
Tree
Range

1 to 20000

Introduced

16.0.R1

Platforms

All

suppress number

Synopsis

Value above which a route is suppressed

Tree
Range

1 to 20000

Introduced

16.0.R1

Platforms

All

global-variables

Synopsis

Enter the global-variables context

Introduced

16.0.R4

Platforms

All

name [variable-name] string

Synopsis

Enter the name list instance

Tree
Max. Elements

1000

Introduced

16.0.R4

Platforms

All

[variable-name] string

Synopsis

Map a variable name to a value, a number, or address

String Length

1 to 32

Notes

This element is part of a list key.

Introduced

16.0.R4

Platforms

All

address (ipv4-address-no-zone | ipv6-address-no-zone)

Synopsis

Variable name that is resolved to IP address

Context

configure policy-options global-variables name string address (ipv4-address-no-zone | ipv6-address-no-zone)

Tree
Notes

The following are part of a mandatory choice: address, decimal, number, or value.

Introduced

16.0.R4

Platforms

All

decimal decimal-number

Synopsis

Attribute decimal to which variable-name is resolved

Context
Tree
Range

0.000 to 4294967295.000

Notes

The following are part of a mandatory choice: address, decimal, number, or value.

Introduced

19.7.R1

Platforms

All

number number

Synopsis

Variable name that is resolved to assigned value

Tree
Range

0 to 4294967295

Notes

The following are part of a mandatory choice: address, decimal, number, or value.

Introduced

16.0.R4

Platforms

All

value string

Synopsis

Variable name that is resolved to assigned value

Tree
String Length

1 to 32

Notes

The following are part of a mandatory choice: address, decimal, number, or value.

Introduced

16.0.R4

Platforms

All

policy-statement [name] string

Synopsis

Enter the policy-statement list instance

Max. Elements

65535

Introduced

16.0.R1

Platforms

All

[name] string

Synopsis

Name of a policy statement

String Length

1 to 64

Notes

This element is part of a list key.

Introduced

16.0.R1

Platforms

All

default-action

Synopsis

Enable the default-action context

Introduced

16.0.R1

Platforms

All

action-type keyword

Synopsis

Type of action for routes matching route policy entry

Options

accept, reject, next-entry, next-policy

Notes

This element is mandatory.

Introduced

16.0.R1

Platforms

All

add-paths-send-limit (number | keyword)

Synopsis

BGP Add-Paths send limit that is applied for routes

Range

1 to 16

Options

multipaths

Introduced

16.0.R1

Platforms

All

admin-tag-policy (param-midstring-64 | string)

Synopsis

Administrative tag policy name

Context
String Length

1 to 64

Introduced

16.0.R1

Platforms

All

advertise-label keyword

Synopsis

Label allocation for matched BGP routes

Options

per-prefix, pop

Introduced

16.0.R1

Platforms

All

aigp-metric

Synopsis

Enter the aigp-metric context

Introduced

16.0.R1

Platforms

All

add (number | string)

Synopsis

AIGP metric to add

Tree
String Length

1 to 32

Range

0 to 4294967295

Notes

The following are part of a choice: add or set.

Introduced

16.0.R1

Platforms

All

set (keyword | number | string)

Synopsis

AIGP metric

Context
Tree
String Length

1 to 32

Range

0 to 4294967295

Options

igp

Notes

The following are part of a choice: add or set.

Introduced

16.0.R1

Platforms

All

as-path

Synopsis

Enter the as-path context

Tree
Introduced

16.0.R1

Platforms

All

add (param-midstring | string)

Synopsis

AS path to add

Context
Tree
String Length

1 to 32

Notes

The following are part of a choice: add or replace.

Introduced

16.0.R1

Platforms

All

replace (param-midstring | string)

Synopsis

AS path to replace

Context
Tree
String Length

1 to 32

Notes

The following are part of a choice: add or replace.

Introduced

16.0.R1

Platforms

All

as-path-prepend

Synopsis

Enter the as-path-prepend context

Introduced

16.0.R1

Platforms

All

as-path (number | string | keyword)

Synopsis

AS number to prepend to AS path attribute

Tree
String Length

1 to 32

Range

1 to 4294967295

Options

most-recent

Introduced

16.0.R1

Platforms

All

repeat (number | string)

Synopsis

Number of times to prepend the specified AS number

Tree
String Length

1 to 32

Range

1 to 50

Default

1

Introduced

16.0.R1

Platforms

All

bgp-high-priority boolean

Synopsis

Tag routes as high priority for fast table updates

Description

When configured to true, eligible BGP routes matched by the policy entry or policy default-action are tagged as needing faster route table updates.

This action applies only when the policy is applied as a BGP import policy to a base router BGP peer or VPRN BGP peer and applies only to the following route types:

•   IPv4

•   label-IPv4

•   IPv6

•   label-IPv6

This command is useful when the BGP RIB contains a large number of routes and quick routing table updates are needed for a small subset of these routes. The effectiveness of this command decreases as the subset becomes a larger proportion of the total RIB.

When configured as false, no routes are tagged for faster route table updates.

Default

false

Introduced

20.5.R1

Platforms

All

bgp-leak boolean

Synopsis

Allow leaking for BGP routes

Tree
Default

false

Introduced

16.0.R1

Platforms

All

bgp-med

Synopsis

Enter the bgp-med context

Tree
Introduced

19.7.R1

Platforms

All

adjust string

Synopsis

Adjust BGP-MED

Tree
String Length

1 to 64

Notes

The following are part of a choice: adjust or set.

Introduced

19.7.R1

Platforms

All

set (keyword | number | string)

Synopsis

Assign BGP-MED

Context
Tree
String Length

1 to 32

Range

0 to 4294967295

Options

igp, min-igp

Notes

The following are part of a choice: adjust or set.

Introduced

19.7.R1

Platforms

All

bgp-tunnel-metric

Synopsis

Enter the bgp-tunnel-metric context

Description

Commands in this context configure the tunnel-table metrics associated with BGP label unicast routes that pass through to the default action of the policy.

Introduced

20.5.R1

Platforms

All

prefer-aigp boolean

Synopsis

Use AIGP attribute as tunnel metric when present

Description

When configured to true, and a BGP-LU route is selected for installation in TTM and it is matched by this action in a BGP import policy. The TTM metric of the tunnel is set to the AIGP metric value of the BGP-LU route plus the IGP cost to reach the BGP next-hop if it has the AIGP path attribute, otherwise it is set to the value implied by the value leaf.

When configured to false, the AIGP attribute is removed from the advertised routes and is ignored if present in the received routes.

Default

false

Introduced

20.5.R1

Platforms

All

value (string | number)

Synopsis

BGP tunnel table metric value

Tree
Description

This command configures a BGP tunnel metric is assigned to routes that do not match any entry.

If a BGP-LU route is selected for installation in TTM and it is matched by this action in a BGP import policy, the TTM metric of the associated tunnel is set to this value (or the value associated with the parameter name) if either:

  1. the prefer-aigp option is set to false
  2. the prefer-aigp option is set to true but the BGP-LU route does not have an AIGP attribute
String Length

1 to 32

Range

0 to 4294967295

Introduced

20.5.R1

Platforms

All

community

Synopsis

Enter the community context

Tree
Introduced

16.0.R1

Platforms

All

add (param-midstring-64 | string)

Synopsis

List of community names to add

Context
Tree
String Length

1 to 64

Max. Elements

28

Notes

The following are part of a choice: (add and remove) or replace.

This element is ordered by the user.

Introduced

16.0.R1

Platforms

All

remove (param-midstring-64 | string)

Synopsis

List of community names to remove

Context
Tree
String Length

1 to 64

Max. Elements

28

Notes

The following are part of a choice: (add and remove) or replace.

This element is ordered by the user.

Introduced

16.0.R1

Platforms

All

replace (param-midstring-64 | string)

Synopsis

List of community names to replace

Context
Tree
String Length

1 to 64

Max. Elements

28

Notes

The following are part of a choice: (add and remove) or replace.

This element is ordered by the user.

Introduced

16.0.R1

Platforms

All

create-udp-tunnel boolean

Synopsis

Create an MPLS-over-UDP tunnel

Default

false

Introduced

16.0.R1

Platforms

All

damping (keyword | param-midstring | string)

Synopsis

Damping profile for routes

Context

configure policy-options policy-statement string default-action damping (keyword | param-midstring | string)

Tree
String Length

1 to 32

Options

none

Introduced

16.0.R1

Platforms

All

dest-class number

Synopsis

Default destination class for the policy statement

Description

This command specifies the policy accounting destination class index to associate with matched routes.

Range

1 to 255

Introduced

16.0.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-s, 7950 XRS

egress-statistics boolean

Synopsis

Enable egress statistics for BGP-LU routes

Description

When configured to true, this command enables the allocation of statistical indexes to BGP labeled unicast route entries that are programmed on egress data paths.

When configured to false, this command disables the allocation of statistical indexes to BGP-LU route entries.

Default

false

Introduced

20.10.R1

Platforms

All

flex-algo (string | number)

Synopsis

Flexible algorithm for BGP next-hop autobind operation

Tree
Description

This command configures the Flex-Algorithm for use in the BGP next-hop automatic bind operation in a BGP import policy. A Flex-Algorithm aware autobind of the BGP next-hop is enabled when the route is matched by the policy statement entry.

Flex-Algorithm aware next-hop lookup is supported for unicast BGP, VPRN, and BGP-LU.

This command is not supported for multicast address families.

String Length

1 to 32

Range

128 to 255

Introduced

20.10.R1

Platforms

All

ingress-statistics boolean

Synopsis

Enable ingress statistics for BGP-LU routes

Description

When configured to true, this command enables the allocation of statistical indexes to BGP labeled unicast route entries that are programmed on ingress data paths. For effective operation, a prefix must be advertised with a label per prefix for ILM statistics.

When configured to false, this command disables the allocation of statistical indexes to BGP-LU route entries.

Default

false

Introduced

20.10.R1

Platforms

All

install-backup-path boolean

Synopsis

Install a preprogrammed backup path for the prefix

Default

false

Introduced

16.0.R1

Platforms

All

local-preference (number | string)

Synopsis

BGP local preference for routes not matching any entry

String Length

1 to 32

Range

0 to 4294967295

Introduced

16.0.R1

Platforms

All

metric

Synopsis

Enter the metric context

Tree
Introduced

16.0.R1

Platforms

All

add (number | string)

Synopsis

Metric to add

Tree
String Length

1 to 32

Range

0 to 4294967295

Notes

The following are part of a choice: add, set, or subtract.

Introduced

16.0.R1

Platforms

All

set (number | string)

Synopsis

Metric to assign

Tree
String Length

1 to 32

Range

0 to 4294967295

Notes

The following are part of a choice: add, set, or subtract.

Introduced

16.0.R1

Platforms

All

subtract (number | string)

Synopsis

Metric to subtract

Tree
String Length

1 to 32

Range

0 to 4294967295

Notes

The following are part of a choice: add, set, or subtract.

Introduced

16.0.R1

Platforms

All

multicast-redirection

Synopsis

Enter the multicast-redirection context

Introduced

16.0.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, VSR

fwd-service string

Synopsis

Service ID for multicast redirection

Default

Base

Introduced

16.0.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, VSR

ip-int-name string

Synopsis

Interface index to redirect IGMP multicast traffic

String Length

1 to 32

Introduced

16.0.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, VSR

nat-policy (param-midstring | string)

Synopsis

BGP-VPN imported route and a NAT policy association

Context
Description

This command associates a NAT policy and an BGP-VPN imported route.

A dynamic route obtained by BGP-VPN can be imported into an inside (private side) routing context in NAT environment. This route must be associated with a NAT policy that maps traffic into a NAT pool and outside routing context. If the NAT policy is not specified within the route policy entry, the imported NAT route is, by default, associated with the default NAT policy defined in the NAT inside routing context.

All BGP-VPN routes that are destined to be imported into the NAT inside routing context must have action-type accept regardless of whether the NAT policy is configured in the action. 

String Length

1 to 32

Introduced

21.5.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-e, 7750 SR-s, VSR

next-hop (keyword | ipv4-address-no-zone | ipv6-address-no-zone | string)

Synopsis

Next-hop IP address applied to routes

Context

configure policy-options policy-statement string default-action next-hop (keyword | ipv4-address-no-zone | ipv6-address-no-zone | string)

Tree
String Length

1 to 32

Options

peer-address, self

Introduced

16.0.R1

Platforms

All

origin (keyword | string)

Synopsis

BGP origin for routes that are exported into BGP

Tree
String Length

1 to 32

Options

igp, egp, incomplete

Introduced

16.0.R1

Platforms

All

origin-validation-state (keyword | string)

Synopsis

Origin validation state for routes

String Length

1 to 32

Options

valid, not-found, invalid

Introduced

16.0.R1

Platforms

All

preference (number | string)

Synopsis

Route preference applied to routes

String Length

1 to 32

Range

1 to 255

Introduced

16.0.R1

Platforms

All

resolve-static boolean

Synopsis

Resolve next hop of static route for BGP next hop

Default

false

Introduced

16.0.R1

Platforms

All

route-table-install boolean

Synopsis

Allow installation in route table

Default

true

Introduced

19.10.R1

Platforms

All

source-class number

Synopsis

Default source class for the policy statement

Description

This command specifies the policy accounting source class index to associate with matched routes.

Range

1 to 255

Introduced

16.0.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-s, 7950 XRS

sr-label-index

Synopsis

Enter the sr-label-index context

Description

Commands in this context configure the policy action to associate a BGP segment-routing label index value with all /32 BGP labeled IPv4 routes.

The use of this action in a policy entry that matches more than one /32 labeled IPv4 route may create SID conflicts.

This action only takes effect in BGP peer import policies (and only on received /32 labeled IPv4 routes) and in route table import policies associated with the labeled IPv4 RIB.

When this action occurs in a policy applied as a peer import policy, a prefix SID attribute can be added to a received /32 labeled IPv4 route that was not sent with this attribute, or the received prefix SID attribute can be replaced with a new one.

Introduced

19.10.R1

Platforms

All

prefer-igp boolean

Synopsis

Use the SR label index from the IGP route when present

Description

When configured to true, BGP obtains the SID index from the IGP route (if a SID index is present) and the configure router bgp segment-routing prefix-sid-range global command is set to true.

This command applies only to route table import policies.

When configured to false, or the SID index is not present in the IGP route, or the configure router bgp segment-routing prefix-sid-range global command is not set to true, BGP obtains the label index value from the value command.

Default

false

Introduced

19.10.R1

Platforms

All

value (string | number)

Synopsis

BGP SR label index associated with routes

Tree
Description

This command specifies the BGP SR label index value to be associated with a route or routes.

If this command specifies an index value that causes a SID conflict with another BGP route, all conflicting BGP routes are re-advertised with label values based on dynamic allocation rather than SID-based allocation.

If this command specifies an index value that causes a SID conflict with an IGP route, the BGP route is re-advertised with a label value based on dynamic allocation rather than SID-based allocation.

String Length

1 to 32

Range

0 to 524287

Introduced

19.10.R1

Platforms

All

sr-maintenance-policy (param-midstring | string)

Synopsis

SR maintenance policy as an action

Description

This command applies a named segment routing maintenance policy as an action for route policies. It is only used for SR policy routes.

String Length

1 to 32

Introduced

20.10.R1

Platforms

All

sticky-ecmp boolean

Synopsis

Specify sticky ECMP flag for BGP ECMP routes

Default

false

Introduced

16.0.R1

Platforms

All

tag (number | string)

Synopsis

OSPF RIP or ISIS tag applied to routes

Tree
String Length

1 to 32

Range

1 to 4294967295

Introduced

16.0.R1

Platforms

All

type (number | string)

Synopsis

OSPF type metric applied to routes

Tree
String Length

1 to 32

Range

1 to 2

Introduced

16.0.R1

Platforms

All

description string

Synopsis

Text description

String Length

1 to 80

Introduced

16.0.R1

Platforms

All

entry [entry-id] number

Synopsis

Enter the entry list instance

Tree
Introduced

16.0.R1

Platforms

All

[entry-id] number

Synopsis

Entry ID of a route policy entry

Range

1 to 4294967295

Notes

This element is part of a list key.

Introduced

16.0.R1

Platforms

All

action

Synopsis

Enable the action context

Tree
Introduced

16.0.R1

Platforms

All

action-type keyword

Synopsis

Type of action for routes matching route policy entry

Options

accept, reject, next-entry, next-policy

Notes

This element is mandatory.

Introduced

16.0.R1

Platforms

All

add-paths-send-limit (number | keyword)

Synopsis

BGP Add-Paths send limit that is applied for routes

Range

1 to 16

Options

multipaths

Introduced

16.0.R1

Platforms

All

admin-tag-policy (param-midstring-64 | string)

Synopsis

Administrative tag policy name

Context

configure policy-options policy-statement string entry number action admin-tag-policy (param-midstring-64 | string)

String Length

1 to 64

Introduced

16.0.R1

Platforms

All

advertise-label keyword

Synopsis

Label allocation for matched BGP routes

Options

per-prefix, pop

Introduced

16.0.R1

Platforms

All

aigp-metric

Synopsis

Enter the aigp-metric context

Introduced

16.0.R1

Platforms

All

add (number | string)

Synopsis

AIGP metric to add

Context
Tree
String Length

1 to 32

Range

0 to 4294967295

Notes

The following are part of a choice: add or set.

Introduced

16.0.R1

Platforms

All

set (keyword | number | string)

Synopsis

AIGP metric

Context

configure policy-options policy-statement string entry number action aigp-metric set (keyword | number | string)

Tree
String Length

1 to 32

Range

0 to 4294967295

Options

igp

Notes

The following are part of a choice: add or set.

Introduced

16.0.R1

Platforms

All

as-path

Synopsis

Enter the as-path context

Tree
Introduced

16.0.R1

Platforms

All

add (param-midstring | string)

Synopsis

AS path to add

Context

configure policy-options policy-statement string entry number action as-path add (param-midstring | string)

Tree
String Length

1 to 32

Notes

The following are part of a choice: add or replace.

Introduced

16.0.R1

Platforms

All

replace (param-midstring | string)

Synopsis

AS path to replace

Context

configure policy-options policy-statement string entry number action as-path replace (param-midstring | string)

Tree
String Length

1 to 32

Notes

The following are part of a choice: add or replace.

Introduced

16.0.R1

Platforms

All

as-path-prepend

Synopsis

Enter the as-path-prepend context

Introduced

16.0.R1

Platforms

All

as-path (number | string | keyword)

Synopsis

AS number to prepend to AS path attribute

Context

configure policy-options policy-statement string entry number action as-path-prepend as-path (number | string | keyword)

Tree
String Length

1 to 32

Range

1 to 4294967295

Options

most-recent

Introduced

16.0.R1

Platforms

All

repeat (number | string)

Synopsis

Number of times to prepend the specified AS number

Tree
String Length

1 to 32

Range

1 to 50

Default

1

Introduced

16.0.R1

Platforms

All

bgp-high-priority boolean

Synopsis

Tag routes as high priority for fast table updates

Description

When configured to true, eligible BGP routes matched by the policy entry or policy default-action are tagged as needing faster route table updates.

This action applies only when the policy is applied as a BGP import policy to a base router BGP peer or VPRN BGP peer and applies only to the following route types:

•   IPv4

•   label-IPv4

•   IPv6

•   label-IPv6

This command is useful when the BGP RIB contains a large number of routes and quick routing table updates are needed for a small subset of these routes. The effectiveness of this command decreases as the subset becomes a larger proportion of the total RIB.

When configured as false, no routes are tagged for faster route table updates.

Default

false

Introduced

20.5.R1

Platforms

All

bgp-leak boolean

Synopsis

Allow leaking for BGP routes

Tree
Default

false

Introduced

16.0.R1

Platforms

All

bgp-med

Synopsis

Enter the bgp-med context

Tree
Introduced

19.7.R1

Platforms

All

adjust string

Synopsis

Adjust BGP-MED

Tree
String Length

1 to 64

Notes

The following are part of a choice: adjust or set.

Introduced

19.7.R1

Platforms

All

set (keyword | number | string)

Synopsis

Assign BGP-MED

Context

configure policy-options policy-statement string entry number action bgp-med set (keyword | number | string)

Tree
String Length

1 to 32

Range

0 to 4294967295

Options

igp, min-igp

Notes

The following are part of a choice: adjust or set.

Introduced

19.7.R1

Platforms

All

bgp-tunnel-metric

Synopsis

Enter the bgp-tunnel-metric context

Description

Commands in this context configure the tunnel-table metrics associated with BGP label unicast routes that pass through to the default action of the policy.

Introduced

20.5.R1

Platforms

All

prefer-aigp boolean

Synopsis

Use AIGP attribute as tunnel metric when present

Description

When configured to true, and a BGP-LU route is selected for installation in TTM and it is matched by this action in a BGP import policy. The TTM metric of the tunnel is set to the AIGP metric value of the BGP-LU route plus the IGP cost to reach the BGP next-hop if it has the AIGP path attribute, otherwise it is set to the value implied by the value leaf.

When configured to false, the AIGP attribute is removed from the advertised routes and is ignored if present in the received routes.

Default

false

Introduced

20.5.R1

Platforms

All

value (string | number)

Synopsis

BGP tunnel table metric value

Tree
Description

This command configures a BGP tunnel metric is assigned to routes that do not match any entry.

If a BGP-LU route is selected for installation in TTM and it is matched by this action in a BGP import policy, the TTM metric of the associated tunnel is set to this value (or the value associated with the parameter name) if either:

  1. the prefer-aigp option is set to false
  2. the prefer-aigp option is set to true but the BGP-LU route does not have an AIGP attribute
String Length

1 to 32

Range

0 to 4294967295

Introduced

20.5.R1

Platforms

All

community

Synopsis

Enter the community context

Tree
Introduced

16.0.R1

Platforms

All

add (param-midstring-64 | string)

Synopsis

List of community names to add

Context

configure policy-options policy-statement string entry number action community add (param-midstring-64 | string)

Tree
String Length

1 to 64

Max. Elements

28

Notes

The following are part of a choice: (add and remove) or replace.

This element is ordered by the user.

Introduced

16.0.R1

Platforms

All

remove (param-midstring-64 | string)

Synopsis

List of community names to remove

Context

configure policy-options policy-statement string entry number action community remove (param-midstring-64 | string)

Tree
String Length

1 to 64

Max. Elements

28

Notes

The following are part of a choice: (add and remove) or replace.

This element is ordered by the user.

Introduced

16.0.R1

Platforms

All

replace (param-midstring-64 | string)

Synopsis

List of community names to replace

Context

configure policy-options policy-statement string entry number action community replace (param-midstring-64 | string)

Tree
String Length

1 to 64

Max. Elements

28

Notes

The following are part of a choice: (add and remove) or replace.

This element is ordered by the user.

Introduced

16.0.R1

Platforms

All

create-udp-tunnel boolean

Synopsis

Create an MPLS-over-UDP tunnel

Default

false

Introduced

16.0.R1

Platforms

All

damping (keyword | param-midstring | string)

Synopsis

Damping profile for routes

Context

configure policy-options policy-statement string entry number action damping (keyword | param-midstring | string)

Tree
String Length

1 to 32

Options

none

Introduced

16.0.R1

Platforms

All

dest-class number

Synopsis

Default destination class for the policy statement

Description

This command specifies the policy accounting destination class index to associate with matched routes.

Range

1 to 255

Introduced

16.0.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-s, 7950 XRS

egress-statistics boolean

Synopsis

Enable egress statistics for BGP-LU routes

Description

When configured to true, this command enables the allocation of statistical indexes to BGP labeled unicast route entries that are programmed on egress data paths.

When configured to false, this command disables the allocation of statistical indexes to BGP-LU route entries.

Default

false

Introduced

20.10.R1

Platforms

All

flex-algo (string | number)

Synopsis

Flexible algorithm for BGP next-hop autobind operation

Context
Tree
Description

This command configures the Flex-Algorithm for use in the BGP next-hop automatic bind operation in a BGP import policy. A Flex-Algorithm aware autobind of the BGP next-hop is enabled when the route is matched by the policy statement entry.

Flex-Algorithm aware next-hop lookup is supported for unicast BGP, VPRN, and BGP-LU.

This command is not supported for multicast address families.

String Length

1 to 32

Range

128 to 255

Introduced

20.10.R1

Platforms

All

forwarding-class

Synopsis

Enter the forwarding-class context

Introduced

16.0.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, 7950 XRS

fc keyword

Synopsis

Forwarding class associated with the route

Tree
Options

be, l2, af, l1, h2, ef, h1, nc

Introduced

16.0.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, 7950 XRS

priority keyword

Synopsis

Route priority

Tree
Options

low, high

Introduced

16.0.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, 7950 XRS

ingress-statistics boolean

Synopsis

Enable ingress statistics for BGP-LU routes

Description

When configured to true, this command enables the allocation of statistical indexes to BGP labeled unicast route entries that are programmed on ingress data paths. For effective operation, a prefix must be advertised with a label per prefix for ILM statistics.

When configured to false, this command disables the allocation of statistical indexes to BGP-LU route entries.

Default

false

Introduced

20.10.R1

Platforms

All

install-backup-path boolean

Synopsis

Install a preprogrammed backup path for the prefix

Default

false

Introduced

16.0.R1

Platforms

All

local-preference (number | string)

Synopsis

BGP local preference for routes not matching any entry

Context
String Length

1 to 32

Range

0 to 4294967295

Introduced

16.0.R1

Platforms

All

metric

Synopsis

Enter the metric context

Tree
Introduced

16.0.R1

Platforms

All

add (number | string)

Synopsis

Metric to add

Context
Tree
String Length

1 to 32

Range

0 to 4294967295

Notes

The following are part of a choice: add, set, or subtract.

Introduced

16.0.R1

Platforms

All

set (number | string)

Synopsis

Metric to assign

Context
Tree
String Length

1 to 32

Range

0 to 4294967295

Notes

The following are part of a choice: add, set, or subtract.

Introduced

16.0.R1

Platforms

All

subtract (number | string)

Synopsis

Metric to subtract

Context
Tree
String Length

1 to 32

Range

0 to 4294967295

Notes

The following are part of a choice: add, set, or subtract.

Introduced

16.0.R1

Platforms

All

multicast-redirection

Synopsis

Enter the multicast-redirection context

Introduced

16.0.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, VSR

fwd-service string

Synopsis

Service ID for multicast redirection

Default

Base

Introduced

16.0.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, VSR

ip-int-name string

Synopsis

Interface index to redirect IGMP multicast traffic

String Length

1 to 32

Introduced

16.0.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, VSR

nat-policy (param-midstring | string)

Synopsis

BGP-VPN imported route and a NAT policy association

Context

configure policy-options policy-statement string entry number action nat-policy (param-midstring | string)

Description

This command associates a NAT policy and an BGP-VPN imported route.

A dynamic route obtained by BGP-VPN can be imported into an inside (private side) routing context in NAT environment. This route must be associated with a NAT policy that maps traffic into a NAT pool and outside routing context. If the NAT policy is not specified within the route policy entry, the imported NAT route is, by default, associated with the default NAT policy defined in the NAT inside routing context.

All BGP-VPN routes that are destined to be imported into the NAT inside routing context must have action-type accept regardless of whether the NAT policy is configured in the action. 

String Length

1 to 32

Introduced

21.5.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-e, 7750 SR-s, VSR

next-hop (keyword | ipv4-address-no-zone | ipv6-address-no-zone | string)

Synopsis

Next-hop IP address applied to routes

Context

configure policy-options policy-statement string entry number action next-hop (keyword | ipv4-address-no-zone | ipv6-address-no-zone | string)

Tree
String Length

1 to 32

Options

peer-address, self

Introduced

16.0.R1

Platforms

All

origin (keyword | string)

Synopsis

BGP origin for routes that are exported into BGP

Context

configure policy-options policy-statement string entry number action origin (keyword | string)

Tree
String Length

1 to 32

Options

igp, egp, incomplete

Introduced

16.0.R1

Platforms

All

origin-validation-state (keyword | string)

Synopsis

Origin validation state for routes

String Length

1 to 32

Options

valid, not-found, invalid

Introduced

16.0.R1

Platforms

All

preference (number | string)

Synopsis

Route preference applied to routes

Context
String Length

1 to 32

Range

1 to 255

Introduced

16.0.R1

Platforms

All

resolve-static boolean

Synopsis

Resolve next hop of static route for BGP next hop

Default

false

Introduced

16.0.R1

Platforms

All

route-table-install boolean

Synopsis

Allow installation in route table

Default

true

Introduced

19.10.R1

Platforms

All

source-class number

Synopsis

Default source class for the policy statement

Description

This command specifies the policy accounting source class index to associate with matched routes.

Range

1 to 255

Introduced

16.0.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-s, 7950 XRS

sr-label-index

Synopsis

Enter the sr-label-index context

Description

Commands in this context configure the policy action to associate a BGP segment-routing label index value with all /32 BGP labeled IPv4 routes.

The use of this action in a policy entry that matches more than one /32 labeled IPv4 route may create SID conflicts.

This action only takes effect in BGP peer import policies (and only on received /32 labeled IPv4 routes) and in route table import policies associated with the labeled IPv4 RIB.

When this action occurs in a policy applied as a peer import policy, a prefix SID attribute can be added to a received /32 labeled IPv4 route that was not sent with this attribute, or the received prefix SID attribute can be replaced with a new one.

Introduced

19.10.R1

Platforms

All

prefer-igp boolean

Synopsis

Use the SR label index from the IGP route when present

Description

When configured to true, BGP obtains the SID index from the IGP route (if a SID index is present) and the configure router bgp segment-routing prefix-sid-range global command is set to true.

This command applies only to route table import policies.

When configured to false, or the SID index is not present in the IGP route, or the configure router bgp segment-routing prefix-sid-range global command is not set to true, BGP obtains the label index value from the value command.

Default

false

Introduced

19.10.R1

Platforms

All

value (string | number)

Synopsis

BGP SR label index associated with routes

Context
Tree
Description

This command specifies the BGP SR label index value to be associated with a route or routes.

If this command specifies an index value that causes a SID conflict with another BGP route, all conflicting BGP routes are re-advertised with label values based on dynamic allocation rather than SID-based allocation.

If this command specifies an index value that causes a SID conflict with an IGP route, the BGP route is re-advertised with a label value based on dynamic allocation rather than SID-based allocation.

String Length

1 to 32

Range

0 to 524287

Introduced

19.10.R1

Platforms

All

sr-maintenance-policy (param-midstring | string)

Synopsis

SR maintenance policy as an action

Context
Description

This command applies a named segment routing maintenance policy as an action for route policies. It is only used for SR policy routes.

String Length

1 to 32

Introduced

20.10.R1

Platforms

All

sticky-ecmp boolean

Synopsis

Specify sticky ECMP flag for BGP ECMP routes

Default

false

Introduced

16.0.R1

Platforms

All

tag (number | string)

Synopsis

OSPF RIP or ISIS tag applied to routes

Context

configure policy-options policy-statement string entry number action tag (number | string)

Tree
String Length

1 to 32

Range

1 to 4294967295

Introduced

16.0.R1

Platforms

All

type (number | string)

Synopsis

OSPF type metric applied to routes

Context

configure policy-options policy-statement string entry number action type (number | string)

Tree
String Length

1 to 32

Range

1 to 2

Introduced

16.0.R1

Platforms

All

conditional-expression

Synopsis

Enable the conditional-expression context

Introduced

16.0.R1

Platforms

All

route-exists string

Synopsis

Conditional expression to test route existence

String Length

1 to 255

Introduced

16.0.R1

Platforms

All

description string

Synopsis

Text description

String Length

1 to 80

Introduced

16.0.R1

Platforms

All

from

Synopsis

Enable the from context

Tree
Introduced

16.0.R1

Platforms

All

aggregate-contributor boolean

Synopsis

Enable aggregate route match criterion

Description

When configured to true, matches all routes (BGP and non-BGP) that have contributed to an active aggregate route. If the prefix tree above a particular route includes no active aggregate routes or the most specific active aggregate route in the prefix tree above this route has a policy that rejects the route, then it is not considered as an aggregate-contributor.

This match condition is only supported when used in a BGP export policy. If it is used in an entry of a BGP import policy, vrf-export policy or vrf-import policy, no routes are matched by that entry.

When configured to false, no routes (BGP and non-BGP) that have contributed to an active aggregate route are matched.

Default

false

Introduced

20.10.R1

Platforms

All

area string

Synopsis

OSPF area as match criterion

Tree
Introduced

16.0.R1

Platforms

All

as-path

Synopsis

Enter the as-path context

Tree
Introduced

16.0.R1

Platforms

All

group (param-midstring | string)

Synopsis

AS Path Group as match criterion

Context

configure policy-options policy-statement string entry number from as-path group (param-midstring | string)

Tree
String Length

1 to 32

Notes

The following are part of a choice: group or name.

Introduced

16.0.R1

Platforms

All

length

Synopsis

Enter the length context

Tree
Introduced

16.0.R1

Platforms

All

qualifier keyword

Synopsis

Higher or lower values to be accepted as match criteria

Tree
Default

equal

Options

equal, or-higher, or-lower

Introduced

16.0.R1

Platforms

All

unique boolean

Synopsis

Use unique AS numbers as matching criteria

Tree
Default

false

Introduced

16.0.R1

Platforms

All

value (number | string)

Synopsis

AS numbers in the AS Path that match on the BGP route

Context
Tree
String Length

1 to 32

Range

0 to 255

Introduced

16.0.R1

Platforms

All

name (param-midstring | string)

Synopsis

AS Path regular expression statement as match criterion

Context

configure policy-options policy-statement string entry number from as-path name (param-midstring | string)

Tree
String Length

1 to 32

Notes

The following are part of a choice: group or name.

Introduced

16.0.R1

Platforms

All

cluster-id

Synopsis

Enter the cluster-id context

Introduced

16.0.R1

Platforms

All

ip-address string

Synopsis

Cluster list attribute IP addresses for route matching

Max. Elements

5

Notes

The following are part of a choice: ip-address or none-cluster-list.

This element is ordered by the user.

Introduced

16.0.R1

Platforms

All

none-cluster-list boolean

Synopsis

Specify matching BGP routes without a cluster ID

Default

false

Notes

The following are part of a choice: ip-address or none-cluster-list.

Introduced

16.0.R1

Platforms

All

color number

Synopsis

Color ID as a match criterion

Tree
Description

This command configures an SR Policy color ID as a route policy match criterion. This match criterion is only used in import policies.

Range

0 to 4294967295

Introduced

20.10.R1

Platforms

All

community

Synopsis

Enter the community context

Tree
Introduced

16.0.R1

Platforms

All

count

Synopsis

Enter the count context

Tree
Introduced

16.0.R1

Platforms

All

qualifier keyword

Synopsis

Higher or lower values to be accepted as match criteria

Tree
Default

equal

Options

equal, or-higher, or-lower

Introduced

16.0.R1

Platforms

All

type keyword

Synopsis

Communities count to match the community count criteria

Tree
Options

standard, extended, large

Introduced

16.0.R1

Platforms

All

value (number | string)

Synopsis

Number of BGP communities to match the BGP route

Context
Tree
String Length

1 to 32

Range

0 to 1024

Introduced

16.0.R1

Platforms

All

expression string

Synopsis

Community expression name as match criterion

String Length

1 to 900

Notes

The following are part of a choice: expression or name.

Introduced

16.0.R1

Platforms

All

name (param-midstring-64 | string)

Synopsis

Community name to match

Context

configure policy-options policy-statement string entry number from community name (param-midstring-64 | string)

Tree
String Length

1 to 64

Notes

The following are part of a choice: expression or name.

Introduced

16.0.R1

Platforms

All

distinguisher number

Synopsis

SR policy distinguisher as a match criterion

Description

This command configures an SR Policy distinguisher as a route policy match criterion. This match criterion is only used in import policies.

Range

0 to 4294967295

Introduced

20.10.R1

Platforms

All

endpoint (ipv4-address-no-zone | ipv6-address-no-zone)

Synopsis

SR policy endpoint address as a match criterion

Context

configure policy-options policy-statement string entry number from endpoint (ipv4-address-no-zone | ipv6-address-no-zone)

Tree
Description

This command configures an SR Policy endpoint address as a route policy match criterion. This match criterion is only used in import policies.

Introduced

20.10.R1

Platforms

All

evpn-type keyword

Synopsis

EVPN type as a match criterion for the entry

Tree
Options

ethernet-auto-discovery, mac-ip-advertisement, inclusive-multicast, ethernet-segment, ip-prefix, selective-multicast, multicast-join-sync, multicast-leave-sync

Introduced

16.0.R4

Platforms

All

external boolean

Synopsis

Specify external ISIS route as match criterion

Tree
Default

false

Introduced

16.0.R1

Platforms

All

family keyword

Synopsis

Address family as the match condition

Tree
Options

ipv4, vpn-ipv4, ipv6, mcast-ipv4, vpn-ipv6, l2-vpn, mvpn-ipv4, mdt-safi, ms-pw, flow-ipv4, route-target, mcast-vpn-ipv4, mvpn-ipv6, flow-ipv6, evpn, mcast-ipv6, label-ipv4, label-ipv6, bgp-ls, mcast-vpn-ipv6, sr-policy-ipv4, sr-policy-ipv6

Max. Elements

20

Introduced

16.0.R1

Platforms

All

flowspec

Synopsis

Enter the flowspec context

Tree
Introduced

16.0.R4

Platforms

All

dest (param-midstring | string)

Synopsis

Match BGP flowspec routes per the destination IP prefix

Context

configure policy-options policy-statement string entry number from flowspec dest (param-midstring | string)

Tree
String Length

1 to 32

Introduced

16.0.R4

Platforms

All

source (param-midstring | string)

Synopsis

Match BGP flowspec routes per the source IP prefix

Context

configure policy-options policy-statement string entry number from flowspec source (param-midstring | string)

Tree
String Length

1 to 32

Introduced

16.0.R4

Platforms

All

group-address (param-midstring | string)

Synopsis

Prefix list of multicast group addresses to use as match criterion

Context

configure policy-options policy-statement string entry number from group-address (param-midstring | string)

String Length

1 to 32

Introduced

16.0.R1

Platforms

All

host-ip (param-midstring | string)

Synopsis

Prefix list of IGMP host IP addresses for matching

Context

configure policy-options policy-statement string entry number from host-ip (param-midstring | string)

Tree
String Length

1 to 32

Introduced

16.0.R1

Platforms

All

interface (named-item | interface-name | interface-name | interface-name)

Synopsis

Interface name as match criterion

Context

configure policy-options policy-statement string entry number from interface (named-item | interface-name | interface-name | interface-name)

Tree
String Length

1 to 32

Max. Elements

1

Notes

This element is ordered by the user.

Introduced

16.0.R1

Platforms

All

interface-subnets

Synopsis

Enter the interface-subnets context

Description

Commands in this context configure the applied router instance and interfaces that are used as the matching condition within each policy statement entry when exporting the IP address of the associated interface to a routing protocol.

The interface subnet policy statement match criterion is applied to the following unicast use case contexts:

  1. export, when used with OSPFv2, OSPFv3, IS-IS, RIP, RIPng, and BGP
  2. route-table-import, when used with BGP
  3. vrf-export, when used with MP-BGP
Introduced

21.2.R1

Platforms

All

ip-int-name string

Synopsis

Interface name as the match criterion

Description

This command specifies the interface name to match when exporting the IP address of the associated interface to a routing protocol.

String Length

1 to 32

Max. Elements

10

Notes

This element is ordered by the user.

Introduced

21.2.R1

Platforms

All

service string

Synopsis

Service ID of the interface subnets

Tree
Default

Base

Introduced

21.2.R1

Platforms

All

level number

Synopsis

ISIS route level as match criterion

Tree
Range

1 to 2

Introduced

16.0.R1

Platforms

All

local-preference

Synopsis

Enter the local-preference context

Introduced

16.0.R1

Platforms

All

qualifier keyword

Synopsis

Higher or lower values to be accepted as match criteria

Tree
Default

equal

Options

equal, or-higher, or-lower

Introduced

16.0.R1

Platforms

All

value (number | string)

Synopsis

BGP routes per local preference value or variable name

Context
Tree
String Length

1 to 32

Range

0 to 4294967295

Introduced

16.0.R1

Platforms

All

metric

Synopsis

Enter the metric context

Tree
Introduced

16.0.R1

Platforms

All

qualifier keyword

Synopsis

Higher or lower values to be accepted as match criteria

Tree
Default

equal

Options

equal, or-higher, or-lower

Introduced

16.0.R1

Platforms

All

value (number | string)

Synopsis

Local preference value, or variable name

Context
Tree
String Length

1 to 32

Range

0 to 4294967295

Introduced

16.0.R1

Platforms

All

mvpn-type keyword

Synopsis

MVPN type as match criterion for the entry

Tree
Options

intra-as-ipmsi-auto-discovery, inter-as-ipmsi-auto-discovery, s-pmsi-auto-discovery, intra-as-segment-leaf-auto-discovery, source-active-auto-discovery, shared-tree-join, source-tree-join

Introduced

16.0.R1

Platforms

All

neighbor

Synopsis

Enter the neighbor context

Tree
Introduced

16.0.R1

Platforms

All

ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)

Synopsis

IP address to match the neighbor

Context

configure policy-options policy-statement string entry number from neighbor ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)

Notes

The following are part of a choice: ip-address or prefix-list.

Introduced

16.0.R1

Platforms

All

prefix-list (param-midstring | string)

Synopsis

Name to match the neighbor prefix list

Context

configure policy-options policy-statement string entry number from neighbor prefix-list (param-midstring | string)

String Length

1 to 32

Notes

The following are part of a choice: ip-address or prefix-list.

Introduced

16.0.R1

Platforms

All

next-hop

Synopsis

Enter the next-hop context

Tree
Introduced

16.0.R1

Platforms

All

ip-address (ipv4-address-no-zone | ipv6-address-no-zone)

Synopsis

IP address of next hop to match

Context

configure policy-options policy-statement string entry number from next-hop ip-address (ipv4-address-no-zone | ipv6-address-no-zone)

Notes

The following are part of a choice: ip-address or prefix-list.

Introduced

16.0.R1

Platforms

All

prefix-list (param-midstring | string)

Synopsis

Name of a next hop prefix list to match

Context

configure policy-options policy-statement string entry number from next-hop prefix-list (param-midstring | string)

String Length

1 to 32

Notes

The following are part of a choice: ip-address or prefix-list.

Introduced

16.0.R1

Platforms

All

origin keyword

Synopsis

Origin attribute as a match criterion

Tree
Options

igp, egp, incomplete, any, aaa, dynamic, static, bonding

Introduced

16.0.R1

Platforms

All

origin-validation-state keyword

Synopsis

Origin attribute as a match criterion

Options

valid, not-found, invalid

Introduced

16.0.R1

Platforms

All

ospf-type number

Synopsis

OSPF type metric applied to un-matching route entries

Tree
Range

1 to 2

Introduced

16.0.R1

Platforms

All

path-type keyword

Synopsis

Path type as a match criterion

Tree
Options

ibgp, ebgp

Introduced

16.0.R1

Platforms

All

policy (string | string)

Synopsis

Policy statement as a match criterion

Context

configure policy-options policy-statement string entry number from policy (string | string)

Tree
String Length

1 to 255

Introduced

16.0.R1

Platforms

All

policy-variables

Synopsis

Enter the policy-variables context

Introduced

16.0.R1

Platforms

All

name [variable-name] string

Synopsis

Enter the name list instance

Tree
Max. Elements

10

Introduced

16.0.R1

Platforms

All

[variable-name] string

Synopsis

Map a variable name to a value, a number, or address

String Length

1 to 32

Notes

This element is part of a list key.

Introduced

16.0.R1

Platforms

All

address (ipv4-address-no-zone | ipv6-address-no-zone)

Synopsis

Variable name that is resolved to IP address

Context

configure policy-options policy-statement string entry number from policy-variables name string address (ipv4-address-no-zone | ipv6-address-no-zone)

Tree
Notes

The following are part of a mandatory choice: address, decimal, number, or value.

Introduced

16.0.R1

Platforms

All

decimal decimal-number

Synopsis

Attribute decimal to which variable-name is resolved

Context
Tree
Range

0.000 to 4294967295.000

Notes

The following are part of a mandatory choice: address, decimal, number, or value.

Introduced

19.7.R1

Platforms

All

number number

Synopsis

Variable name that is resolved to assigned value

Tree
Range

0 to 4294967295

Notes

The following are part of a mandatory choice: address, decimal, number, or value.

Introduced

16.0.R1

Platforms

All

value string

Synopsis

Variable name that is resolved to assigned value

Tree
String Length

1 to 32

Notes

The following are part of a mandatory choice: address, decimal, number, or value.

Introduced

16.0.R1

Platforms

All

prefix-list (param-midstring | string)

Synopsis

Prefix list as match criterion

Context

configure policy-options policy-statement string entry number from prefix-list (param-midstring | string)

String Length

1 to 32

Max. Elements

28

Notes

This element is ordered by the user.

Introduced

16.0.R1

Platforms

All

protocol

Synopsis

Enter the protocol context

Tree
Description

Commands in this context configure the match criterion based on protocols for a route policy statement entry and may be used for both import and export policies.

Introduced

16.0.R1

Platforms

All

instance (keyword | number)

Synopsis

Instance for protocol IS-IS, OSPF, or OSPFv3 to match

Context
Tree
Description

This command specifies the OSPF, OSPFv3, or IS-IS instance to be used as the match criterion.

When this command is explicitly configured, the name command must be configured to identify the protocol (OSPF, OSPFv3, or IS-IS).

Range

0 to 127

Default

0

Options

all

Introduced

16.0.R1

Platforms

All

name keyword

Synopsis

List of protocol names as the match criterion

Tree
Description

This command specifies a protocol list for the match criterion.  If multiple protocols are specified, the protocol names must belong to the following protocol set:

  1. direct
  2. static
  3. isis
  4. aggregate
  5. bgp
  6. bgp-label
  7. direct-interface

If multiple protocols are specified, the instance command cannot be explicitly configured.

Options

direct, static, bgp, isis, ospf, rip, aggregate, bgp-vpn, igmp, pim, ospf3, ldp, sub-mgmt, mld, managed, vpn-leak, nat, periodic, ipsec, dhcpv6-pd, dhcpv6-na, dhcpv6-ta, dhcpv6-pd-excl, ripng, bgp-label, direct-interface, arp-nd, rib-api, dhcp-client, evpn-ifl, srv6

Max. Elements

5

Introduced

16.0.R1

Platforms

All

source-address

Synopsis

Enter the source-address context

Introduced

16.0.R1

Platforms

All

ip-address (ipv4-address-no-zone | ipv6-address-no-zone)

Synopsis

Source IP address to match

Context

configure policy-options policy-statement string entry number from source-address ip-address (ipv4-address-no-zone | ipv6-address-no-zone)

Notes

The following are part of a choice: ip-address or prefix-list.

Introduced

16.0.R1

Platforms

All

prefix-list (param-midstring | string)

Synopsis

Name of a source address prefix list to match

Context
String Length

1 to 32

Notes

The following are part of a choice: ip-address or prefix-list.

Introduced

16.0.R1

Platforms

All

state keyword

Synopsis

State that is used as match criterion

Tree
Options

srrp-master, srrp-non-master, ipsec-master-with-peer, ipsec-master-without-peer, ipsec-non-master

Introduced

16.0.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, VSR

tag (number | keyword)

Synopsis

Route tag as match criterion

Context

configure policy-options policy-statement string entry number from tag (number | keyword)

Tree
Range

1 to 4294967295

Options

no-tag

Introduced

16.0.R1

Platforms

All

to

Synopsis

Enable the to context

Tree
Introduced

16.0.R1

Platforms

All

level number

Synopsis

ISIS route level as match criterion

Context
Tree
Range

1 to 2

Introduced

16.0.R1

Platforms

All

neighbor

Synopsis

Enter the neighbor context

Tree
Introduced

16.0.R1

Platforms

All

ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)

Synopsis

IP address to match the neighbor

Context

configure policy-options policy-statement string entry number to neighbor ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)

Notes

The following are part of a choice: ip-address or prefix-list.

Introduced

16.0.R1

Platforms

All

prefix-list (param-midstring | string)

Synopsis

Name to match the neighbor prefix list

Context

configure policy-options policy-statement string entry number to neighbor prefix-list (param-midstring | string)

String Length

1 to 32

Notes

The following are part of a choice: ip-address or prefix-list.

Introduced

16.0.R1

Platforms

All

prefix-list (param-midstring | string)

Synopsis

Prefix list as match criterion

Context

configure policy-options policy-statement string entry number to prefix-list (param-midstring | string)

String Length

1 to 32

Max. Elements

28

Notes

This element is ordered by the user.

Introduced

16.0.R1

Platforms

All

protocol

Synopsis

Enter the protocol context

Tree
Introduced

16.0.R1

Platforms

All

instance (keyword | number)

Synopsis

Instance for protocol ISIS, OSPF, or OSPF3

Context
Tree
Range

0 to 127

Default

0

Options

all

Introduced

16.0.R1

Platforms

All

name keyword

Synopsis

Protocol name to match

Tree
Options

bgp, isis, ospf, rip, bgp-vpn, ospf3, ldp, vpn-leak, ripng, bgp-label, evpn-ifl

Max. Elements

2

Introduced

16.0.R1

Platforms

All

entry-type keyword

Synopsis

The entry-type of a route policy entry

Default

numbered

Options

numbered, named

Introduced

19.10.R1

Platforms

All

named-entry [entry-name] string

Synopsis

Enter the named-entry list instance

Max. Elements

16384

Notes

This element is ordered by the user.

Introduced

19.10.R1

Platforms

All

[entry-name] string

Synopsis

The name of a route policy entry

String Length

1 to 255

Notes

This element is part of a list key.

Introduced

19.10.R1

Platforms

All

action

Synopsis

Enable the action context

Tree
Introduced

19.10.R1

Platforms

All

action-type keyword

Synopsis

Type of action for routes matching route policy entry

Options

accept, reject, next-entry, next-policy

Notes

This element is mandatory.

Introduced

19.10.R1

Platforms

All

add-paths-send-limit (number | keyword)

Synopsis

BGP Add-Paths send limit that is applied for routes

Range

1 to 16

Options

multipaths

Introduced

19.10.R1

Platforms

All

admin-tag-policy (param-midstring-64 | string)

Synopsis

Administrative tag policy name

Context

configure policy-options policy-statement string named-entry string action admin-tag-policy (param-midstring-64 | string)

String Length

1 to 64

Introduced

19.10.R1

Platforms

All

advertise-label keyword

Synopsis

Label allocation for matched BGP routes

Options

per-prefix, pop

Introduced

19.10.R1

Platforms

All

aigp-metric

Synopsis

Enter the aigp-metric context

Introduced

19.10.R1

Platforms

All

add (number | string)

Synopsis

AIGP metric to add

Tree
String Length

1 to 32

Range

0 to 4294967295

Notes

The following are part of a choice: add or set.

Introduced

19.10.R1

Platforms

All

set (keyword | number | string)

Synopsis

AIGP metric

Context

configure policy-options policy-statement string named-entry string action aigp-metric set (keyword | number | string)

Tree
String Length

1 to 32

Range

0 to 4294967295

Options

igp

Notes

The following are part of a choice: add or set.

Introduced

19.10.R1

Platforms

All

as-path

Synopsis

Enter the as-path context

Tree
Introduced

19.10.R1

Platforms

All

add (param-midstring | string)

Synopsis

AS path to add

Context

configure policy-options policy-statement string named-entry string action as-path add (param-midstring | string)

Tree
String Length

1 to 32

Notes

The following are part of a choice: add or replace.

Introduced

19.10.R1

Platforms

All

replace (param-midstring | string)

Synopsis

AS path to replace

Context

configure policy-options policy-statement string named-entry string action as-path replace (param-midstring | string)

Tree
String Length

1 to 32

Notes

The following are part of a choice: add or replace.

Introduced

19.10.R1

Platforms

All

as-path-prepend

Synopsis

Enter the as-path-prepend context

Introduced

19.10.R1

Platforms

All

as-path (number | string | keyword)

Synopsis

AS number to prepend to AS path attribute

Context
Tree
String Length

1 to 32

Range

1 to 4294967295

Options

most-recent

Introduced

19.10.R1

Platforms

All

repeat (number | string)

Synopsis

Number of times to prepend the specified AS number

Tree
String Length

1 to 32

Range

1 to 50

Default

1

Introduced

19.10.R1

Platforms

All

bgp-high-priority boolean

Synopsis

Tag routes as high priority for fast table updates

Description

When configured to true, eligible BGP routes matched by the policy entry or policy default-action are tagged as needing faster route table updates.

This action applies only when the policy is applied as a BGP import policy to a base router BGP peer or VPRN BGP peer and applies only to the following route types:

•   IPv4

•   label-IPv4

•   IPv6

•   label-IPv6

This command is useful when the BGP RIB contains a large number of routes and quick routing table updates are needed for a small subset of these routes. The effectiveness of this command decreases as the subset becomes a larger proportion of the total RIB.

When configured as false, no routes are tagged for faster route table updates.

Default

false

Introduced

20.5.R1

Platforms

All

bgp-leak boolean

Synopsis

Allow leaking for BGP routes

Tree
Default

false

Introduced

19.10.R1

Platforms

All

bgp-med

Synopsis

Enter the bgp-med context

Tree
Introduced

19.10.R1

Platforms

All

adjust string

Synopsis

Adjust BGP-MED

Tree
String Length

1 to 64

Notes

The following are part of a choice: adjust or set.

Introduced

19.10.R1

Platforms

All

set (keyword | number | string)

Synopsis

Assign BGP-MED

Context

configure policy-options policy-statement string named-entry string action bgp-med set (keyword | number | string)

Tree
String Length

1 to 32

Range

0 to 4294967295

Options

igp, min-igp

Notes

The following are part of a choice: adjust or set.

Introduced

19.10.R1

Platforms

All

bgp-tunnel-metric

Synopsis

Enter the bgp-tunnel-metric context

Description

Commands in this context configure the tunnel-table metrics associated with BGP label unicast routes that pass through to the default action of the policy.

Introduced

20.5.R1

Platforms

All

prefer-aigp boolean

Synopsis

Use AIGP attribute as tunnel metric when present

Description

When configured to true, and a BGP-LU route is selected for installation in TTM and it is matched by this action in a BGP import policy. The TTM metric of the tunnel is set to the AIGP metric value of the BGP-LU route plus the IGP cost to reach the BGP next-hop if it has the AIGP path attribute, otherwise it is set to the value implied by the value leaf.

When configured to false, the AIGP attribute is removed from the advertised routes and is ignored if present in the received routes.

Default

false

Introduced

20.5.R1

Platforms

All

value (string | number)

Synopsis

BGP tunnel table metric value

Tree
Description

This command configures a BGP tunnel metric is assigned to routes that do not match any entry.

If a BGP-LU route is selected for installation in TTM and it is matched by this action in a BGP import policy, the TTM metric of the associated tunnel is set to this value (or the value associated with the parameter name) if either:

  1. the prefer-aigp option is set to false
  2. the prefer-aigp option is set to true but the BGP-LU route does not have an AIGP attribute
String Length

1 to 32

Range

0 to 4294967295

Introduced

20.5.R1

Platforms

All

community

Synopsis

Enter the community context

Tree
Introduced

19.10.R1

Platforms

All

add (param-midstring-64 | string)

Synopsis

List of community names to add

Context

configure policy-options policy-statement string named-entry string action community add (param-midstring-64 | string)

Tree
String Length

1 to 64

Max. Elements

28

Notes

The following are part of a choice: (add and remove) or replace.

This element is ordered by the user.

Introduced

19.10.R1

Platforms

All

remove (param-midstring-64 | string)

Synopsis

List of community names to remove

Context

configure policy-options policy-statement string named-entry string action community remove (param-midstring-64 | string)

Tree
String Length

1 to 64

Max. Elements

28

Notes

The following are part of a choice: (add and remove) or replace.

This element is ordered by the user.

Introduced

19.10.R1

Platforms

All

replace (param-midstring-64 | string)

Synopsis

List of community names to replace

Context

configure policy-options policy-statement string named-entry string action community replace (param-midstring-64 | string)

Tree
String Length

1 to 64

Max. Elements

28

Notes

The following are part of a choice: (add and remove) or replace.

This element is ordered by the user.

Introduced

19.10.R1

Platforms

All

create-udp-tunnel boolean

Synopsis

Create an MPLS-over-UDP tunnel

Default

false

Introduced

19.10.R1

Platforms

All

damping (keyword | param-midstring | string)

Synopsis

Damping profile for routes

Context

configure policy-options policy-statement string named-entry string action damping (keyword | param-midstring | string)

Tree
String Length

1 to 32

Options

none

Introduced

19.10.R1

Platforms

All

dest-class number

Synopsis

Default destination class for the policy statement

Description

This command specifies the policy accounting destination class index to associate with matched routes.

Range

1 to 255

Introduced

19.10.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-s, 7950 XRS

egress-statistics boolean

Synopsis

Enable egress statistics for BGP-LU routes

Description

When configured to true, this command enables the allocation of statistical indexes to BGP labeled unicast route entries that are programmed on egress data paths.

When configured to false, this command disables the allocation of statistical indexes to BGP-LU route entries.

Default

false

Introduced

20.10.R1

Platforms

All

flex-algo (string | number)

Synopsis

Flexible algorithm for BGP next-hop autobind operation

Context
Tree
Description

This command configures the Flex-Algorithm for use in the BGP next-hop automatic bind operation in a BGP import policy. A Flex-Algorithm aware autobind of the BGP next-hop is enabled when the route is matched by the policy statement entry.

Flex-Algorithm aware next-hop lookup is supported for unicast BGP, VPRN, and BGP-LU.

This command is not supported for multicast address families.

String Length

1 to 32

Range

128 to 255

Introduced

20.10.R1

Platforms

All

forwarding-class

Synopsis

Enter the forwarding-class context

Introduced

19.10.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, 7950 XRS

fc keyword

Synopsis

Forwarding class associated with the route

Tree
Options

be, l2, af, l1, h2, ef, h1, nc

Introduced

19.10.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, 7950 XRS

priority keyword

Synopsis

Route priority

Tree
Options

low, high

Introduced

19.10.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, 7950 XRS

ingress-statistics boolean

Synopsis

Enable ingress statistics for BGP-LU routes

Description

When configured to true, this command enables the allocation of statistical indexes to BGP labeled unicast route entries that are programmed on ingress data paths. For effective operation, a prefix must be advertised with a label per prefix for ILM statistics.

When configured to false, this command disables the allocation of statistical indexes to BGP-LU route entries.

Default

false

Introduced

20.10.R1

Platforms

All

install-backup-path boolean

Synopsis

Install a preprogrammed backup path for the prefix

Default

false

Introduced

19.10.R1

Platforms

All

local-preference (number | string)

Synopsis

BGP local preference for routes not matching any entry

String Length

1 to 32

Range

0 to 4294967295

Introduced

19.10.R1

Platforms

All

metric

Synopsis

Enter the metric context

Tree
Introduced

19.10.R1

Platforms

All

add (number | string)

Synopsis

Metric to add

Context
Tree
String Length

1 to 32

Range

0 to 4294967295

Notes

The following are part of a choice: add, set, or subtract.

Introduced

19.10.R1

Platforms

All

set (number | string)

Synopsis

Metric to assign

Context
Tree
String Length

1 to 32

Range

0 to 4294967295

Notes

The following are part of a choice: add, set, or subtract.

Introduced

19.10.R1

Platforms

All

subtract (number | string)

Synopsis

Metric to subtract

Tree
String Length

1 to 32

Range

0 to 4294967295

Notes

The following are part of a choice: add, set, or subtract.

Introduced

19.10.R1

Platforms

All

multicast-redirection

Synopsis

Enter the multicast-redirection context

Introduced

19.10.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, VSR

fwd-service string

Synopsis

Service ID for multicast redirection

Default

Base

Introduced

19.10.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, VSR

ip-int-name string

Synopsis

Interface index to redirect IGMP multicast traffic

String Length

1 to 32

Introduced

19.10.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, VSR

nat-policy (param-midstring | string)

Synopsis

BGP-VPN imported route and a NAT policy association

Context

configure policy-options policy-statement string named-entry string action nat-policy (param-midstring | string)

Description

This command associates a NAT policy and an BGP-VPN imported route.

A dynamic route obtained by BGP-VPN can be imported into an inside (private side) routing context in NAT environment. This route must be associated with a NAT policy that maps traffic into a NAT pool and outside routing context. If the NAT policy is not specified within the route policy entry, the imported NAT route is, by default, associated with the default NAT policy defined in the NAT inside routing context.

All BGP-VPN routes that are destined to be imported into the NAT inside routing context must have action-type accept regardless of whether the NAT policy is configured in the action. 

String Length

1 to 32

Introduced

21.5.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-e, 7750 SR-s, VSR

next-hop (keyword | ipv4-address-no-zone | ipv6-address-no-zone | string)

Synopsis

Next-hop IP address applied to routes

Context

configure policy-options policy-statement string named-entry string action next-hop (keyword | ipv4-address-no-zone | ipv6-address-no-zone | string)

Tree
String Length

1 to 32

Options

peer-address, self

Introduced

19.10.R1

Platforms

All

origin (keyword | string)

Synopsis

BGP origin for routes that are exported into BGP

Context
Tree
String Length

1 to 32

Options

igp, egp, incomplete

Introduced

19.10.R1

Platforms

All

origin-validation-state (keyword | string)

Synopsis

Origin validation state for routes

String Length

1 to 32

Options

valid, not-found, invalid

Introduced

19.10.R1

Platforms

All

preference (number | string)

Synopsis

Route preference applied to routes

Context
String Length

1 to 32

Range

1 to 255

Introduced

19.10.R1

Platforms

All

resolve-static boolean

Synopsis

Resolve next hop of static route for BGP next hop

Default

false

Introduced

19.10.R1

Platforms

All

route-table-install boolean

Synopsis

Allow installation in route table

Default

true

Introduced

19.10.R1

Platforms

All

source-class number

Synopsis

Default source class for the policy statement

Description

This command specifies the policy accounting source class index to associate with matched routes.

Range

1 to 255

Introduced

19.10.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-s, 7950 XRS

sr-label-index

Synopsis

Enter the sr-label-index context

Description

Commands in this context configure the policy action to associate a BGP segment-routing label index value with all /32 BGP labeled IPv4 routes.

The use of this action in a policy entry that matches more than one /32 labeled IPv4 route may create SID conflicts.

This action only takes effect in BGP peer import policies (and only on received /32 labeled IPv4 routes) and in route table import policies associated with the labeled IPv4 RIB.

When this action occurs in a policy applied as a peer import policy, a prefix SID attribute can be added to a received /32 labeled IPv4 route that was not sent with this attribute, or the received prefix SID attribute can be replaced with a new one.

Introduced

19.10.R1

Platforms

All

prefer-igp boolean

Synopsis

Use the SR label index from the IGP route when present

Description

When configured to true, BGP obtains the SID index from the IGP route (if a SID index is present) and the configure router bgp segment-routing prefix-sid-range global command is set to true.

This command applies only to route table import policies.

When configured to false, or the SID index is not present in the IGP route, or the configure router bgp segment-routing prefix-sid-range global command is not set to true, BGP obtains the label index value from the value command.

Default

false

Introduced

19.10.R1

Platforms

All

value (string | number)

Synopsis

BGP SR label index associated with routes

Tree
Description

This command specifies the BGP SR label index value to be associated with a route or routes.

If this command specifies an index value that causes a SID conflict with another BGP route, all conflicting BGP routes are re-advertised with label values based on dynamic allocation rather than SID-based allocation.

If this command specifies an index value that causes a SID conflict with an IGP route, the BGP route is re-advertised with a label value based on dynamic allocation rather than SID-based allocation.

String Length

1 to 32

Range

0 to 524287

Introduced

19.10.R1

Platforms

All

sr-maintenance-policy (param-midstring | string)

Synopsis

SR maintenance policy as an action

Context
Description

This command applies a named segment routing maintenance policy as an action for route policies. It is only used for SR policy routes.

String Length

1 to 32

Introduced

20.10.R1

Platforms

All

sticky-ecmp boolean

Synopsis

Specify sticky ECMP flag for BGP ECMP routes

Default

false

Introduced

19.10.R1

Platforms

All

tag (number | string)

Synopsis

OSPF RIP or ISIS tag applied to routes

Context
Tree
String Length

1 to 32

Range

1 to 4294967295

Introduced

19.10.R1

Platforms

All

type (number | string)

Synopsis

OSPF type metric applied to routes

Context
Tree
String Length

1 to 32

Range

1 to 2

Introduced

19.10.R1

Platforms

All

conditional-expression

Synopsis

Enable the conditional-expression context

Introduced

19.10.R1

Platforms

All

route-exists string

Synopsis

Conditional expression to test route existence

String Length

1 to 255

Introduced

19.10.R1

Platforms

All

description string

Synopsis

Text description

String Length

1 to 80

Introduced

19.10.R1

Platforms

All

from

Synopsis

Enable the from context

Tree
Introduced

19.10.R1

Platforms

All

aggregate-contributor boolean

Synopsis

Enable aggregate route match criterion

Description

When configured to true, matches all routes (BGP and non-BGP) that have contributed to an active aggregate route. If the prefix tree above a particular route includes no active aggregate routes or the most specific active aggregate route in the prefix tree above this route has a policy that rejects the route, then it is not considered as an aggregate-contributor.

This match condition is only supported when used in a BGP export policy. If it is used in an entry of a BGP import policy, vrf-export policy or vrf-import policy, no routes are matched by that entry.

When configured to false, no routes (BGP and non-BGP) that have contributed to an active aggregate route are matched.

Default

false

Introduced

20.10.R1

Platforms

All

area string

Synopsis

OSPF area as match criterion

Tree
Introduced

19.10.R1

Platforms

All

as-path

Synopsis

Enter the as-path context

Tree
Introduced

19.10.R1

Platforms

All

group (param-midstring | string)

Synopsis

AS Path Group as match criterion

Context

configure policy-options policy-statement string named-entry string from as-path group (param-midstring | string)

Tree
String Length

1 to 32

Notes

The following are part of a choice: group or name.

Introduced

19.10.R1

Platforms

All

length

Synopsis

Enter the length context

Tree
Introduced

19.10.R1

Platforms

All

qualifier keyword

Synopsis

Higher or lower values to be accepted as match criteria

Tree
Default

equal

Options

equal, or-higher, or-lower

Introduced

19.10.R1

Platforms

All

unique boolean

Synopsis

Use unique AS numbers as matching criteria

Tree
Default

false

Introduced

19.10.R1

Platforms

All

value (number | string)

Synopsis

AS numbers in the AS Path that match on the BGP route

Tree
String Length

1 to 32

Range

0 to 255

Introduced

19.10.R1

Platforms

All

name (param-midstring | string)

Synopsis

AS Path regular expression statement as match criterion

Context

configure policy-options policy-statement string named-entry string from as-path name (param-midstring | string)

Tree
String Length

1 to 32

Notes

The following are part of a choice: group or name.

Introduced

19.10.R1

Platforms

All

cluster-id

Synopsis

Enter the cluster-id context

Introduced

19.10.R1

Platforms

All

ip-address string

Synopsis

Cluster list attribute IP addresses for route matching

Max. Elements

5

Notes

The following are part of a choice: ip-address or none-cluster-list.

This element is ordered by the user.

Introduced

19.10.R1

Platforms

All

none-cluster-list boolean

Synopsis

Specify matching BGP routes without a cluster ID

Default

false

Notes

The following are part of a choice: ip-address or none-cluster-list.

Introduced

19.10.R1

Platforms

All

color number

Synopsis

Color ID as a match criterion

Tree
Description

This command configures an SR Policy color ID as a route policy match criterion. This match criterion is only used in import policies.

Range

0 to 4294967295

Introduced

20.10.R1

Platforms

All

community

Synopsis

Enter the community context

Tree
Introduced

19.10.R1

Platforms

All

count

Synopsis

Enter the count context

Tree
Introduced

19.10.R1

Platforms

All

qualifier keyword

Synopsis

Higher or lower values to be accepted as match criteria

Tree
Default

equal

Options

equal, or-higher, or-lower

Introduced

19.10.R1

Platforms

All

type keyword

Synopsis

Communities count to match the community count criteria

Tree
Options

standard, extended, large

Introduced

19.10.R1

Platforms

All

value (number | string)

Synopsis

Number of BGP communities to match the BGP route

Tree
String Length

1 to 32

Range

0 to 1024

Introduced

19.10.R1

Platforms

All

expression string

Synopsis

Community expression name as match criterion

String Length

1 to 900

Notes

The following are part of a choice: expression or name.

Introduced

19.10.R1

Platforms

All

name (param-midstring-64 | string)

Synopsis

Community name to match

Context

configure policy-options policy-statement string named-entry string from community name (param-midstring-64 | string)

Tree
String Length

1 to 64

Notes

The following are part of a choice: expression or name.

Introduced

19.10.R1

Platforms

All

distinguisher number

Synopsis

SR policy distinguisher as a match criterion

Description

This command configures an SR Policy distinguisher as a route policy match criterion. This match criterion is only used in import policies.

Range

0 to 4294967295

Introduced

20.10.R1

Platforms

All

endpoint (ipv4-address-no-zone | ipv6-address-no-zone)

Synopsis

SR policy endpoint address as a match criterion

Context

configure policy-options policy-statement string named-entry string from endpoint (ipv4-address-no-zone | ipv6-address-no-zone)

Tree
Description

This command configures an SR Policy endpoint address as a route policy match criterion. This match criterion is only used in import policies.

Introduced

20.10.R1

Platforms

All

evpn-type keyword

Synopsis

EVPN type as a match criterion for the entry

Tree
Options

ethernet-auto-discovery, mac-ip-advertisement, inclusive-multicast, ethernet-segment, ip-prefix, selective-multicast, multicast-join-sync, multicast-leave-sync

Introduced

19.10.R1

Platforms

All

external boolean

Synopsis

Specify external ISIS route as match criterion

Tree
Default

false

Introduced

19.10.R1

Platforms

All

family keyword

Synopsis

Address family as the match condition

Tree
Options

ipv4, vpn-ipv4, ipv6, mcast-ipv4, vpn-ipv6, l2-vpn, mvpn-ipv4, mdt-safi, ms-pw, flow-ipv4, route-target, mcast-vpn-ipv4, mvpn-ipv6, flow-ipv6, evpn, mcast-ipv6, label-ipv4, label-ipv6, bgp-ls, mcast-vpn-ipv6, sr-policy-ipv4, sr-policy-ipv6

Max. Elements

20

Introduced

19.10.R1

Platforms

All

flowspec

Synopsis

Enter the flowspec context

Tree
Introduced

19.10.R1

Platforms

All

dest (param-midstring | string)

Synopsis

Match BGP flowspec routes per the destination IP prefix

Context

configure policy-options policy-statement string named-entry string from flowspec dest (param-midstring | string)

Tree
String Length

1 to 32

Introduced

19.10.R1

Platforms

All

source (param-midstring | string)

Synopsis

Match BGP flowspec routes per the source IP prefix

Context

configure policy-options policy-statement string named-entry string from flowspec source (param-midstring | string)

Tree
String Length

1 to 32

Introduced

19.10.R1

Platforms

All

group-address (param-midstring | string)

Synopsis

Prefix list of multicast group addresses to use as match criterion

Context

configure policy-options policy-statement string named-entry string from group-address (param-midstring | string)

String Length

1 to 32

Introduced

19.10.R1

Platforms

All

host-ip (param-midstring | string)

Synopsis

Prefix list of IGMP host IP addresses for matching

Context

configure policy-options policy-statement string named-entry string from host-ip (param-midstring | string)

Tree
String Length

1 to 32

Introduced

19.10.R1

Platforms

All

interface (named-item | interface-name | interface-name | interface-name)

Synopsis

Interface name as match criterion

Context

configure policy-options policy-statement string named-entry string from interface (named-item | interface-name | interface-name | interface-name)

Tree
String Length

1 to 32

Max. Elements

1

Notes

This element is ordered by the user.

Introduced

19.10.R1

Platforms

All

interface-subnets

Synopsis

Enter the interface-subnets context

Description

Commands in this context configure the applied router instance and interfaces that are used as the matching condition within each policy statement entry when exporting the IP address of the associated interface to a routing protocol.

The interface subnet policy statement match criterion is applied to the following unicast use case contexts:

  1. export, when used with OSPFv2, OSPFv3, IS-IS, RIP, RIPng, and BGP
  2. route-table-import, when used with BGP
  3. vrf-export, when used with MP-BGP
Introduced

21.2.R1

Platforms

All

ip-int-name string

Synopsis

Interface name as the match criterion

Description

This command specifies the interface name to match when exporting the IP address of the associated interface to a routing protocol.

String Length

1 to 32

Max. Elements

10

Notes

This element is ordered by the user.

Introduced

21.2.R1

Platforms

All

service string

Synopsis

Service ID of the interface subnets

Tree
Default

Base

Introduced

21.2.R1

Platforms

All

level number

Synopsis

ISIS route level as match criterion

Tree
Range

1 to 2

Introduced

19.10.R1

Platforms

All

local-preference

Synopsis

Enter the local-preference context

Introduced

19.10.R1

Platforms

All

qualifier keyword

Synopsis

Higher or lower values to be accepted as match criteria

Tree
Default

equal

Options

equal, or-higher, or-lower

Introduced

19.10.R1

Platforms

All

value (number | string)

Synopsis

BGP routes per local preference value or variable name

Tree
String Length

1 to 32

Range

0 to 4294967295

Introduced

19.10.R1

Platforms

All

metric

Synopsis

Enter the metric context

Tree
Introduced

19.10.R1

Platforms

All

qualifier keyword

Synopsis

Higher or lower values to be accepted as match criteria

Tree
Default

equal

Options

equal, or-higher, or-lower

Introduced

19.10.R1

Platforms

All

value (number | string)

Synopsis

Local preference value, or variable name

Context
Tree
String Length

1 to 32

Range

0 to 4294967295

Introduced

19.10.R1

Platforms

All

mvpn-type keyword

Synopsis

MVPN type as match criterion for the entry

Tree
Options

intra-as-ipmsi-auto-discovery, inter-as-ipmsi-auto-discovery, s-pmsi-auto-discovery, intra-as-segment-leaf-auto-discovery, source-active-auto-discovery, shared-tree-join, source-tree-join

Introduced

19.10.R1

Platforms

All

neighbor

Synopsis

Enter the neighbor context

Tree
Introduced

19.10.R1

Platforms

All

ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)

Synopsis

IP address to match the neighbor

Context

configure policy-options policy-statement string named-entry string from neighbor ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)

Notes

The following are part of a choice: ip-address or prefix-list.

Introduced

19.10.R1

Platforms

All

prefix-list (param-midstring | string)

Synopsis

Name to match the neighbor prefix list

Context
String Length

1 to 32

Notes

The following are part of a choice: ip-address or prefix-list.

Introduced

19.10.R1

Platforms

All

next-hop

Synopsis

Enter the next-hop context

Tree
Introduced

19.10.R1

Platforms

All

ip-address (ipv4-address-no-zone | ipv6-address-no-zone)

Synopsis

IP address of next hop to match

Context

configure policy-options policy-statement string named-entry string from next-hop ip-address (ipv4-address-no-zone | ipv6-address-no-zone)

Notes

The following are part of a choice: ip-address or prefix-list.

Introduced

19.10.R1

Platforms

All

prefix-list (param-midstring | string)

Synopsis

Name of a next hop prefix list to match

Context
String Length

1 to 32

Notes

The following are part of a choice: ip-address or prefix-list.

Introduced

19.10.R1

Platforms

All

origin keyword

Synopsis

Origin attribute as a match criterion

Tree
Options

igp, egp, incomplete, any, aaa, dynamic, static, bonding

Introduced

19.10.R1

Platforms

All

origin-validation-state keyword

Synopsis

Origin attribute as a match criterion

Options

valid, not-found, invalid

Introduced

19.10.R1

Platforms

All

ospf-type number

Synopsis

OSPF type metric applied to un-matching route entries

Tree
Range

1 to 2

Introduced

19.10.R1

Platforms

All

path-type keyword

Synopsis

Path type as a match criterion

Tree
Options

ibgp, ebgp

Introduced

19.10.R1

Platforms

All

policy (string | string)

Synopsis

Policy statement as a match criterion

Context
Tree
String Length

1 to 255

Introduced

19.10.R1

Platforms

All

policy-variables

Synopsis

Enter the policy-variables context

Introduced

19.10.R1

Platforms

All

name [variable-name] string

Synopsis

Enter the name list instance

Tree
Max. Elements

10

Introduced

19.10.R1

Platforms

All

[variable-name] string

Synopsis

Map a variable name to a value, a number, or address

String Length

1 to 32

Notes

This element is part of a list key.

Introduced

19.10.R1

Platforms

All

address (ipv4-address-no-zone | ipv6-address-no-zone)

Synopsis

Variable name that is resolved to IP address

Context

configure policy-options policy-statement string named-entry string from policy-variables name string address (ipv4-address-no-zone | ipv6-address-no-zone)

Tree
Notes

The following are part of a mandatory choice: address, decimal, number, or value.

Introduced

19.10.R1

Platforms

All

decimal decimal-number

Synopsis

Attribute decimal to which variable-name is resolved

Tree
Range

0.000 to 4294967295.000

Notes

The following are part of a mandatory choice: address, decimal, number, or value.

Introduced

19.10.R1

Platforms

All

number number

Synopsis

Variable name that is resolved to assigned value

Tree
Range

0 to 4294967295

Notes

The following are part of a mandatory choice: address, decimal, number, or value.

Introduced

19.10.R1

Platforms

All

value string

Synopsis

Variable name that is resolved to assigned value

Tree
String Length

1 to 32

Notes

The following are part of a mandatory choice: address, decimal, number, or value.

Introduced

19.10.R1

Platforms

All

prefix-list (param-midstring | string)

Synopsis

Prefix list as match criterion

Context

configure policy-options policy-statement string named-entry string from prefix-list (param-midstring | string)

String Length

1 to 32

Max. Elements

28

Notes

This element is ordered by the user.

Introduced

19.10.R1

Platforms

All

protocol

Synopsis

Enter the protocol context

Tree
Description

Commands in this context configure the match criterion based on protocols for a route policy statement entry and may be used for both import and export policies.

Introduced

19.10.R1

Platforms

All

instance (keyword | number)

Synopsis

Instance for protocol IS-IS, OSPF, or OSPFv3 to match

Context
Tree
Description

This command specifies the OSPF, OSPFv3, or IS-IS instance to be used as the match criterion.

When this command is explicitly configured, the name command must be configured to identify the protocol (OSPF, OSPFv3, or IS-IS).

Range

0 to 127

Default

0

Options

all

Introduced

19.10.R1

Platforms

All

name keyword

Synopsis

List of protocol names as the match criterion

Tree
Description

This command specifies a protocol list for the match criterion.  If multiple protocols are specified, the protocol names must belong to the following protocol set:

  1. direct
  2. static
  3. isis
  4. aggregate
  5. bgp
  6. bgp-label
  7. direct-interface

If multiple protocols are specified, the instance command cannot be explicitly configured.

Options

direct, static, bgp, isis, ospf, rip, aggregate, bgp-vpn, igmp, pim, ospf3, ldp, sub-mgmt, mld, managed, vpn-leak, nat, periodic, ipsec, dhcpv6-pd, dhcpv6-na, dhcpv6-ta, dhcpv6-pd-excl, ripng, bgp-label, direct-interface, arp-nd, rib-api, dhcp-client, evpn-ifl, srv6

Max. Elements

5

Introduced

19.10.R1

Platforms

All

source-address

Synopsis

Enter the source-address context

Introduced

19.10.R1

Platforms

All

ip-address (ipv4-address-no-zone | ipv6-address-no-zone)

Synopsis

Source IP address to match

Context

configure policy-options policy-statement string named-entry string from source-address ip-address (ipv4-address-no-zone | ipv6-address-no-zone)

Notes

The following are part of a choice: ip-address or prefix-list.

Introduced

19.10.R1

Platforms

All

prefix-list (param-midstring | string)

Synopsis

Name of a source address prefix list to match

Context
String Length

1 to 32

Notes

The following are part of a choice: ip-address or prefix-list.

Introduced

19.10.R1

Platforms

All

state keyword

Synopsis

State that is used as match criterion

Tree
Options

srrp-master, srrp-non-master, ipsec-master-with-peer, ipsec-master-without-peer, ipsec-non-master

Introduced

19.10.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, VSR

tag (number | keyword)

Synopsis

Route tag as match criterion

Context

configure policy-options policy-statement string named-entry string from tag (number | keyword)

Tree
Range

1 to 4294967295

Options

no-tag

Introduced

19.10.R1

Platforms

All

to

Synopsis

Enable the to context

Tree
Introduced

19.10.R1

Platforms

All

level number

Synopsis

ISIS route level as match criterion

Tree
Range

1 to 2

Introduced

19.10.R1

Platforms

All

neighbor

Synopsis

Enter the neighbor context

Tree
Introduced

19.10.R1

Platforms

All

ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)

Synopsis

IP address to match the neighbor

Context

configure policy-options policy-statement string named-entry string to neighbor ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)

Notes

The following are part of a choice: ip-address or prefix-list.

Introduced

19.10.R1

Platforms

All

prefix-list (param-midstring | string)

Synopsis

Name to match the neighbor prefix list

Context
String Length

1 to 32

Notes

The following are part of a choice: ip-address or prefix-list.

Introduced

19.10.R1

Platforms

All

prefix-list (param-midstring | string)

Synopsis

Prefix list as match criterion

Context

configure policy-options policy-statement string named-entry string to prefix-list (param-midstring | string)

String Length

1 to 32

Max. Elements

28

Notes

This element is ordered by the user.

Introduced

19.10.R1

Platforms

All

protocol

Synopsis

Enter the protocol context

Tree
Introduced

19.10.R1

Platforms

All

instance (keyword | number)

Synopsis

Instance for protocol ISIS, OSPF, or OSPF3

Context
Tree
Range

0 to 127

Default

0

Options

all

Introduced

19.10.R1

Platforms

All

name keyword

Synopsis

Protocol name to match

Tree
Options

bgp, isis, ospf, rip, bgp-vpn, ospf3, ldp, vpn-leak, ripng, bgp-label, evpn-ifl

Max. Elements

2

Introduced

19.10.R1

Platforms

All

prefix-list [name] string

Synopsis

Enter the prefix-list list instance

Introduced

16.0.R1

Platforms

All

[name] string

Synopsis

Prefix list name

String Length

1 to 32

Notes

This element is part of a list key.

Introduced

16.0.R1

Platforms

All

prefix [ip-prefix] (ipv4-prefix | ipv6-prefix) type keyword

Synopsis

Enter the prefix list instance

Context

configure policy-options prefix-list string prefix (ipv4-prefix | ipv6-prefix) type keyword

Tree
Introduced

16.0.R1

Platforms

All

[ip-prefix] (ipv4-prefix | ipv6-prefix)

Synopsis

IP prefix associated with prefix length

Context

configure policy-options prefix-list string prefix (ipv4-prefix | ipv6-prefix) type keyword

Notes

This element is part of a list key.

Introduced

16.0.R1

Platforms

All

type keyword

Synopsis

Prefix list match type

Context

configure policy-options prefix-list string prefix (ipv4-prefix | ipv6-prefix) type keyword

Options

exact, longer, through, range, to, address-mask

Notes

This element is part of a list key.

Introduced

16.0.R1

Platforms

All

end-length number

Synopsis

End in the prefix range length

Context

configure policy-options prefix-list string prefix (ipv4-prefix | ipv6-prefix) type keyword end-length number

Range

0 to 128

Notes

The following are part of a choice: mask-pattern, (end-length and start-length), through-length, or to-prefix.

Introduced

16.0.R1

Platforms

All

mask-pattern [address] (ipv4-address-no-zone | ipv6-address-no-zone)

Synopsis

Add a list entry for mask-pattern

Context

configure policy-options prefix-list string prefix (ipv4-prefix | ipv6-prefix) type keyword mask-pattern (ipv4-address-no-zone | ipv6-address-no-zone)

Notes

The following are part of a choice: mask-pattern, (end-length and start-length), through-length, or to-prefix.

Introduced

20.7.R1

Platforms

All

[address] (ipv4-address-no-zone | ipv6-address-no-zone)

Synopsis

Address mask for matching routes to the prefix entry

Context

configure policy-options prefix-list string prefix (ipv4-prefix | ipv6-prefix) type keyword mask-pattern (ipv4-address-no-zone | ipv6-address-no-zone)

Description

This command specifies the address mask to compare against the prefix entry to determine whether the route is considered a match.

A route matches the prefix entry if the following conditions are met.

  1. The bitwise logical AND of the prefix address and its mask matches the bitwise logical AND of the route address and its mask.
  2. The prefix length of the prefix entry matches the prefix length of the route.

For example, for a prefix entry of 17.1.0.0/32, routes with an address 17.1.x.0 (where x can be 0 through 255) and a prefix length of 32 match the entry.

Notes

This element is part of a list key.

Introduced

20.7.R1

Platforms

All

start-length number

Synopsis

Start in the prefix range length

Context

configure policy-options prefix-list string prefix (ipv4-prefix | ipv6-prefix) type keyword start-length number

Range

0 to 128

Notes

The following are part of a choice: mask-pattern, (end-length and start-length), through-length, or to-prefix.

Introduced

16.0.R1

Platforms

All

through-length number

Synopsis

Prefix through length

Context

configure policy-options prefix-list string prefix (ipv4-prefix | ipv6-prefix) type keyword through-length number

Range

0 to 128

Notes

The following are part of a choice: mask-pattern, (end-length and start-length), through-length, or to-prefix.

Introduced

16.0.R1

Platforms

All

to-prefix [ip-prefix] (ipv4-prefix | ipv6-prefix)

Synopsis

Add a list entry for to-prefix

Context

configure policy-options prefix-list string prefix (ipv4-prefix | ipv6-prefix) type keyword to-prefix (ipv4-prefix | ipv6-prefix)

Tree
Notes

The following are part of a choice: mask-pattern, (end-length and start-length), through-length, or to-prefix.

Introduced

20.7.R1

Platforms

All

[ip-prefix] (ipv4-prefix | ipv6-prefix)

Synopsis

IP prefix for "to" match type

Context

configure policy-options prefix-list string prefix (ipv4-prefix | ipv6-prefix) type keyword to-prefix (ipv4-prefix | ipv6-prefix)

Description

This command configures an IP prefix to use in a route policy prefix list for the to match type. If the prefix entry is in the format prefix1/length1, and this command is configured in the format prefix2/length2, a route matches the prefix entry if the following conditions are met.

  1. The route shares the same most-significant bits (specified by length1) with the prefix entry
  2. The route shares the same most-significant bits (specified by length2) with this IP prefix value
  3. The prefix length of the route is in the range of length1 to length2 (inclusive)

For example, for a prefix entry of 10.0.0.8 with a to IP prefix value of 10.0.0.0/32, routes 10.0.0.0/8, 10.0.0.0/9, 10.0.0.0.0/10, and so on, to 10.0.0.0/32 are considered matches for the prefix entry.

Notes

This element is part of a list key.

Introduced

20.7.R1

Platforms

All