policy-options commands

configure 
policy-options 
apply-groups reference
apply-groups-exclude reference
as-path named-item 
apply-groups reference
apply-groups-exclude reference
expression policy-as-path-regexp
as-path-group named-item 
apply-groups reference
apply-groups-exclude reference
entry number 
apply-groups reference
apply-groups-exclude reference
expression policy-as-path-regexp
community policy-community-name 
apply-groups reference
apply-groups-exclude reference
expression 
apply-groups reference
apply-groups-exclude reference
exact boolean
expr expression-community
member member-community 
damping named-item 
apply-groups reference
apply-groups-exclude reference
half-life number
max-suppress number
reuse number
suppress number
global-variables 
name policy-var-name 
address (ipv4-address-no-zone | ipv6-address-no-zone)
apply-groups reference
apply-groups-exclude reference
decimal decimal-number
number number
value named-item
policy-statement named-item-64 
apply-groups reference
apply-groups-exclude reference
default-action 
action-type keyword
add-paths-send-limit (number | keyword)
admin-tag-policy (param-midstring-64 | string)
advertise-label keyword
aigp-metric 
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-prepend 
as-path (number | string | keyword)
repeat (number | string)
bgp-high-priority boolean
bgp-leak boolean
bgp-med 
adjust string
set (keyword | number | string)
bgp-tunnel-metric 
prefer-aigp boolean
prefer-med boolean
value (string | number)
community 
add (param-midstring-64 | string)
apply-groups reference
apply-groups-exclude reference
remove (param-midstring-64 | string)
replace (param-midstring-64 | string)
create-mpls-tunnel boolean
create-udp-tunnel boolean
damping (keyword | param-midstring | string)
flex-algo (string | number)
install-backup-path boolean
local-preference (number | string)
metric 
add (number | string)
set (number | string)
subtract (number | 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
sr-label-index 
prefer-igp boolean
value (string | number)
sr-maintenance-policy (param-midstring | string)
sticky-ecmp boolean
tag (number | string)
type (number | string)
description description
entry number 
action 
action-type keyword
add-paths-send-limit (number | keyword)
admin-tag-policy (param-midstring-64 | string)
advertise-label keyword
aigp-metric 
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-prepend 
as-path (number | string | keyword)
repeat (number | string)
bgp-high-priority boolean
bgp-leak boolean
bgp-med 
adjust string
set (keyword | number | string)
bgp-tunnel-metric 
prefer-aigp boolean
prefer-med boolean
value (string | number)
community 
add (param-midstring-64 | string)
apply-groups reference
apply-groups-exclude reference
remove (param-midstring-64 | string)
replace (param-midstring-64 | string)
create-mpls-tunnel boolean
create-udp-tunnel boolean
damping (keyword | param-midstring | string)
flex-algo (string | number)
install-backup-path boolean
local-preference (number | string)
metric 
add (number | string)
set (number | string)
subtract (number | 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
sr-label-index 
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
conditional-expression 
apply-groups reference
apply-groups-exclude reference
route-exists string
description description
from 
aggregate-contributor boolean
apply-groups reference
apply-groups-exclude reference
area ipv4-address
as-path 
group (param-midstring | string)
length 
qualifier keyword
unique boolean
value (number | string)
name (param-midstring | string)
cluster-id 
ip-address ipv4-prefix-with-host-bits
none-cluster-list boolean
color number
community 
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
group-address (param-midstring | string)
host-ip (param-midstring | string)
interface (named-item | interface-name | interface-name | interface-name)
interface-subnets 
ip-int-name interface-name
service string
level number
local-preference 
qualifier keyword
value (number | string)
metric 
qualifier keyword
value (number | string)
neighbor 
ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)
prefix-list (param-midstring | string)
next-hop 
ip-address (ipv4-address-no-zone | ipv6-address-no-zone)
prefix-list (param-midstring | string)
origin keyword
origin-validation-state keyword
ospf-type number
path-type keyword
policy (string | string)
policy-variables 
name policy-var-name 
address (ipv4-address-no-zone | ipv6-address-no-zone)
apply-groups reference
apply-groups-exclude reference
decimal decimal-number
number number
value named-item
prefix-list (param-midstring-64 | string)
prefix-list-override string 
apply-groups reference
apply-groups-exclude reference
end-length number
start-length number
through-length number
type keyword
protocol 
instance (keyword | number)
name keyword
route-distinguisher-list (param-midstring-64 | string)
source-address 
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
neighbor 
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-64 | string)
protocol 
instance (keyword | number)
name keyword
entry-type keyword
named-entry named-item-255 
action 
action-type keyword
add-paths-send-limit (number | keyword)
admin-tag-policy (param-midstring-64 | string)
advertise-label keyword
aigp-metric 
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-prepend 
as-path (number | string | keyword)
repeat (number | string)
bgp-high-priority boolean
bgp-leak boolean
bgp-med 
adjust string
set (keyword | number | string)
bgp-tunnel-metric 
prefer-aigp boolean
prefer-med boolean
value (string | number)
community 
add (param-midstring-64 | string)
apply-groups reference
apply-groups-exclude reference
remove (param-midstring-64 | string)
replace (param-midstring-64 | string)
create-mpls-tunnel boolean
create-udp-tunnel boolean
damping (keyword | param-midstring | string)
flex-algo (string | number)
install-backup-path boolean
local-preference (number | string)
metric 
add (number | string)
set (number | string)
subtract (number | 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
sr-label-index 
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
conditional-expression 
apply-groups reference
apply-groups-exclude reference
route-exists string
description description
from 
aggregate-contributor boolean
apply-groups reference
apply-groups-exclude reference
area ipv4-address
as-path 
group (param-midstring | string)
length 
qualifier keyword
unique boolean
value (number | string)
name (param-midstring | string)
cluster-id 
ip-address ipv4-prefix-with-host-bits
none-cluster-list boolean
color number
community 
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
group-address (param-midstring | string)
host-ip (param-midstring | string)
interface (named-item | interface-name | interface-name | interface-name)
interface-subnets 
ip-int-name interface-name
service string
level number
local-preference 
qualifier keyword
value (number | string)
metric 
qualifier keyword
value (number | string)
neighbor 
ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)
prefix-list (param-midstring | string)
next-hop 
ip-address (ipv4-address-no-zone | ipv6-address-no-zone)
prefix-list (param-midstring | string)
origin keyword
origin-validation-state keyword
ospf-type number
path-type keyword
policy (string | string)
policy-variables 
name policy-var-name 
address (ipv4-address-no-zone | ipv6-address-no-zone)
apply-groups reference
apply-groups-exclude reference
decimal decimal-number
number number
value named-item
prefix-list (param-midstring-64 | string)
prefix-list-override string 
apply-groups reference
apply-groups-exclude reference
end-length number
start-length number
through-length number
type keyword
protocol 
instance (keyword | number)
name keyword
route-distinguisher-list (param-midstring-64 | string)
source-address 
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
neighbor 
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-64 | string)
protocol 
instance (keyword | number)
name keyword
prefix-list named-item-64 
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) 
route-distinguisher-list named-item-64 
apply-groups reference
apply-groups-exclude reference
rd-entry string 

policy-options command descriptions

policy-options

Synopsis Enter the policy-options context
Contextconfigure policy-options
Treepolicy-options
Introduced25.3.R2

Platforms

7705 SAR Gen 2

as-path [name] named-item

Synopsis Enter the as-path list instance
Contextconfigure policy-options as-path named-item
Treeas-path
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[name] named-item
Synopsis AS path name
Contextconfigure policy-options as-path named-item
Treeas-path
String length1 to 32

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

expression policy-as-path-regexp
Synopsis Regular expression string
Context configure policy-options as-path named-item expression policy-as-path-regexp
Treeexpression

Description

This command configures a route policy AS path regular expression statement to use in route policy entries.

An AS path in a BGP route matches an AS path regular expression, if the path matches the pattern of the regular expression. A regular expression incorporates terms and operators that use the terms. An individual AS number is an elementary term in the AS path regular expression. More complex terms can be built from elementary terms. The following are key operators supported by SR OS:

  • .

  • *

  • ?

  • {n}

  • {m,n}

  • {m, }

To reverse the match criteria when specifying a list of ranges or single values using square brackets, use the non-match operator (^) before the elements within the square brackets.

String length1 to 255
Introduced25.3.R2

Platforms

7705 SAR Gen 2

as-path-group [name] named-item

Synopsis Enter the as-path-group list instance
Contextconfigure policy-options as-path-group named-item
Treeas-path-group
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[name] named-item
Synopsis AS path group name
Context configure policy-options as-path-group named-item
Treeas-path-group
String length1 to 32

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

entry [entry] number
Synopsis Enter the entry list instance
Context configure policy-options as-path-group named-item entry number
Treeentry
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[entry] number
Synopsis AS path entry ID
Context configure policy-options as-path-group named-item entry number
Treeentry
Range1 to 128

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

expression policy-as-path-regexp
Synopsis Regular expression string
Context configure policy-options as-path-group named-item entry number expression policy-as-path-regexp
Treeexpression

Description

This command configures an AS path group regular expression.

An AS path in a BGP route matches an AS path group, if the pattern of the path matches the concatenation of all regular expressions in the group. A regular expression incorporates terms and operators that use the terms. An individual AS number is an elementary term in the AS path regular expression. More complex terms can be built from elementary terms. The following are key operators supported by SR OS:

  • .

  • *

  • ?

  • {n}

  • {m,n}

  • {m, }

To reverse the match criteria when specifying a list of ranges or single values using square brackets, use the non-match operator (^) before the elements within the square brackets.

String length1 to 255

Notes

This element is mandatory.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

community [name] policy-community-name

Synopsis Enter the community list instance
Contextconfigure policy-options community policy-community-name
Treecommunity
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[name] policy-community-name
Synopsis Community name
Contextconfigure policy-options community policy-community-name
Treecommunity

Description

This command configures a route policy community name.

String values must be composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, and so on), the entire string must be enclosed within double quotes.

String length1 to 64

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

expression
Synopsis Enable the expression context
Context configure policy-options community policy-community-name expression
Treeexpression
Introduced25.3.R2

Platforms

7705 SAR Gen 2

exact boolean
Synopsis Match exactly for the specified expression
Contextconfigure policy-options community policy-community-name expression exact boolean
Treeexact
Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

expr expression-community
Synopsis Community expression value
Context configure policy-options community policy-community-name expression expr expression-community
Treeexpr
String length1 to 900

Notes

This element is mandatory.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

member [member] member-community
Synopsis Add a list entry for member
Context configure policy-options community policy-community-name member member-community
Treemember
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[member] member-community
Synopsis Community member value
Context configure policy-options community policy-community-name member member-community
Treemember

Description

This command configures a BGP community value.

Each member of a community list is a standard, extended, or large community value or a regular expression that potentially matches many community values. A regular expression incorporates terms and operators that use the terms. An individual numerical digit is an elementary term in the community regular expression. More complex terms can be built from elementary terms. The following are key operators supported by SR OS:

  • .

  • *

  • ?

  • {n}

  • {m,n}

  • {m, }

To reverse the match criteria when specifying a list of ranges or single values using square brackets, use the non-match operator (^) before the elements within the square brackets.

String length1 to 72

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

damping [name] named-item

Synopsis Enter the damping list instance
Contextconfigure policy-options damping named-item
Treedamping
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[name] named-item
Synopsis Damping profile name
Context configure policy-options damping named-item
Treedamping
String length1 to 32

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

half-life number
Synopsis Time after the FOM value is halved
Context configure policy-options damping named-item half-life number
Treehalf-life
Range1 to 45
Unitsminutes
Introduced 25.3.R2

Platforms

7705 SAR Gen 2

max-suppress number
Synopsis Maximum time for a route to remain suppressed
Contextconfigure policy-options damping named-item max-suppress number
Treemax-suppress
Range1 to 720
Unitsminutes
Introduced 25.3.R2

Platforms

7705 SAR Gen 2

reuse number
Synopsis Value below which a suppressed route can be used again
Contextconfigure policy-options damping named-item reuse number
Treereuse
Range1 to 20000
Introduced25.3.R2

Platforms

7705 SAR Gen 2

suppress number
Synopsis Value above which a route is suppressed
Contextconfigure policy-options damping named-item suppress number
Treesuppress
Range1 to 20000
Introduced25.3.R2

Platforms

7705 SAR Gen 2

global-variables

Synopsis Enter the global-variables context
Contextconfigure policy-options global-variables
Treeglobal-variables
Introduced25.3.R2

Platforms

7705 SAR Gen 2

name [variable-name] policy-var-name
Synopsis Enter the name list instance
Context configure policy-options global-variables name policy-var-name
Treename
Max. instances1000
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[variable-name] policy-var-name
Synopsis Global variable name used to reference policy functions
Contextconfigure policy-options global-variables name policy-var-name
Treename
String length1 to 32

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

address (ipv4-address-no-zone | ipv6-address-no-zone)
Synopsis IP address of the policy variable
Context configure policy-options global-variables name policy-var-name address (ipv4-address-no-zone | ipv6-address-no-zone)
Treeaddress

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

decimal decimal-number
Synopsis Attribute decimal to which variable name is resolved
Contextconfigure policy-options global-variables name policy-var-name decimal decimal-number
Treedecimal
Range0.000 to 4294967295.000

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

number number
Synopsis Numerical value of the policy variable
Contextconfigure policy-options global-variables name policy-var-name number number
Treenumber
Range0 to 4294967295

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

value named-item
Synopsis Policy variable value
Context configure policy-options global-variables name policy-var-name value named-item
Treevalue
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

policy-statement [name] named-item-64

Synopsis Enter the policy-statement list instance
Contextconfigure policy-options policy-statement named-item-64
Treepolicy-statement
Max. instances65535
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[name] named-item-64
Synopsis Route policy statement name
Context configure policy-options policy-statement named-item-64
Treepolicy-statement
String length1 to 64

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

default-action
Synopsis Enable the default-action context
Contextconfigure policy-options policy-statement named-item-64 default-action
Treedefault-action
Introduced25.3.R2

Platforms

7705 SAR Gen 2

advertise-label keyword
Synopsis Label allocation for matched BGP routes
Contextconfigure policy-options policy-statement named-item-64 default-action advertise-label keyword
Treeadvertise-label

Description

This command configures the label allocation method for advertised routes. The effect of this command depends on the context where the associated policy is applied. 

Optionsper-prefix, pop, pop-and-forward
Introduced25.3.R2

Platforms

7705 SAR Gen 2

aigp-metric
Synopsis Enter the aigp-metric context
Context configure policy-options policy-statement named-item-64 default-action aigp-metric
Treeaigp-metric
Introduced25.3.R2

Platforms

7705 SAR Gen 2

add (number | string)
Synopsis AIGP metric to add
Context configure policy-options policy-statement named-item-64 default-action aigp-metric add (number | string)
Treeadd
String length1 to 32
Range0 to 4294967295

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

set (keyword | number | string)
Synopsis AIGP metric
Contextconfigure policy-options policy-statement named-item-64 default-action aigp-metric set (keyword | number | string)
Treeset
String length1 to 32
Range0 to 4294967295
Optionsigp

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

as-path
Synopsis Enter the as-path context
Context configure policy-options policy-statement named-item-64 default-action as-path
Treeas-path
Introduced25.3.R2

Platforms

7705 SAR Gen 2

add (param-midstring | string)
Synopsis AS path to add
Contextconfigure policy-options policy-statement named-item-64 default-action as-path add (param-midstring | string)
Treeadd
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

replace (param-midstring | string)
Synopsis AS path to replace
Context configure policy-options policy-statement named-item-64 default-action as-path replace (param-midstring | string)
Treereplace
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

as-path-prepend
Synopsis Enter the as-path-prepend context
Contextconfigure policy-options policy-statement named-item-64 default-action as-path-prepend
Treeas-path-prepend
Introduced25.3.R2

Platforms

7705 SAR Gen 2

bgp-high-priority boolean
Synopsis Tag routes as high priority for fast table updates
Contextconfigure policy-options policy-statement named-item-64 default-action bgp-high-priority boolean
Treebgp-high-priority

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 to false, no routes are tagged for faster route table updates.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

bgp-med
Synopsis Enter the bgp-med context
Context configure policy-options policy-statement named-item-64 default-action bgp-med
Treebgp-med
Introduced25.3.R2

Platforms

7705 SAR Gen 2

set (keyword | number | string)
Synopsis BGP-MED assignment
Context configure policy-options policy-statement named-item-64 default-action bgp-med set (keyword | number | string)
Treeset
String length1 to 32
Range0 to 4294967295
Optionsigp, min-igp

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

bgp-tunnel-metric
Synopsis Enter the bgp-tunnel-metric context
Contextconfigure policy-options policy-statement named-item-64 default-action bgp-tunnel-metric
Treebgp-tunnel-metric

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.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefer-aigp boolean
Synopsis Use AIGP attribute as tunnel metric when present
Contextconfigure policy-options policy-statement named-item-64 default-action bgp-tunnel-metric prefer-aigp boolean
Treeprefer-aigp

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.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefer-med boolean
Synopsis Use MED attribute as tunnel metric when present
Contextconfigure policy-options policy-statement named-item-64 default-action bgp-tunnel-metric prefer-med boolean
Treeprefer-med

Description

When configured to true, if a BGP-LU route is selected for installation in the TTM and is matched by this action in a BGP import policy, the TTM metric of the tunnel is set to the MED metric value of the BGP-LU route with the IGP cost to reach the BGP next hop added to it.

When configured to false, the BGP tunnel metric associated with the BGP-LU route accepted by this policy action is not determined using the MED attribute.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

value (string | number)
Synopsis BGP tunnel table metric value
Context configure policy-options policy-statement named-item-64 default-action bgp-tunnel-metric value (string | number)
Treevalue

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:

  • the prefer-aigp option is set to false

  • the prefer-aigp option is set to true but the BGP-LU route does not have an AIGP attribute

String length1 to 32
Range0 to 4294967295
Introduced25.3.R2

Platforms

7705 SAR Gen 2

community
Synopsis Enter the community context
Context configure policy-options policy-statement named-item-64 default-action community
Treecommunity
Introduced25.3.R2

Platforms

7705 SAR Gen 2

add (param-midstring-64 | string)
Synopsis List of community names to add
Context configure policy-options policy-statement named-item-64 default-action community add (param-midstring-64 | string)
Treeadd
String length1 to 64
Max. instances28

Notes

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

This element is ordered by the user.

Introduced 25.3.R2

Platforms

7705 SAR Gen 2

remove (param-midstring-64 | string)
Synopsis List of community names to remove
Context configure policy-options policy-statement named-item-64 default-action community remove (param-midstring-64 | string)
Treeremove
String length1 to 64
Max. instances28

Notes

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

This element is ordered by the user.

Introduced 25.3.R2

Platforms

7705 SAR Gen 2

replace (param-midstring-64 | string)
Synopsis List of community names to replace
Context configure policy-options policy-statement named-item-64 default-action community replace (param-midstring-64 | string)
Treereplace
String length1 to 64
Max. instances28

Notes

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

This element is ordered by the user.

Introduced 25.3.R2

Platforms

7705 SAR Gen 2

create-mpls-tunnel boolean
Synopsis Create an MPLS tunnel
Context configure policy-options policy-statement named-item-64 default-action create-mpls-tunnel boolean
Treecreate-mpls-tunnel

Description

When configured to true, the router creates an MPLS tunnel.

This command is supported for only the following address families:

  • evpn

  • ipv4

  • ipv6

  • label-ipv4

  • label-ipv6

  • vpn-ipv4

  • vpn-ipv6

Defaultfalse
Introduced 25.3.R2

Platforms

7705 SAR Gen 2

damping (keyword | param-midstring | string)
Synopsis Damping profile used for routes
Context configure policy-options policy-statement named-item-64 default-action damping (keyword | param-midstring | string)
Treedamping
String length1 to 32
Optionsnone
Introduced25.3.R2

Platforms

7705 SAR Gen 2

flex-algo (string | number)
Synopsis Flexible algorithm for BGP next-hop autobind operation
Contextconfigure policy-options policy-statement named-item-64 default-action flex-algo (string | number)
Treeflex-algo

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 length1 to 32
Range128 to 255
Introduced25.3.R2

Platforms

7705 SAR Gen 2

metric
Synopsis Enter the metric context
Context configure policy-options policy-statement named-item-64 default-action metric
Treemetric
Introduced25.3.R2

Platforms

7705 SAR Gen 2

add (number | string)
Synopsis Metric to add
Contextconfigure policy-options policy-statement named-item-64 default-action metric add (number | string)
Treeadd
String length1 to 32
Range0 to 4294967295

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

set (number | string)
Synopsis Metric to assign
Context configure policy-options policy-statement named-item-64 default-action metric set (number | string)
Treeset
String length1 to 32
Range0 to 4294967295

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

subtract (number | string)
Synopsis Metric to subtract
Context configure policy-options policy-statement named-item-64 default-action metric subtract (number | string)
Treesubtract
String length1 to 32
Range0 to 4294967295

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

next-hop (keyword | ipv4-address-no-zone | ipv6-address-no-zone | string)
Synopsis Next-hop IP address applied to routes
Contextconfigure policy-options policy-statement named-item-64 default-action next-hop (keyword | ipv4-address-no-zone | ipv6-address-no-zone | string)
Treenext-hop
String length1 to 32
Optionspeer-address, self
Introduced 25.3.R2

Platforms

7705 SAR Gen 2

origin (keyword | string)
Synopsis BGP origin for routes that are exported into BGP
Contextconfigure policy-options policy-statement named-item-64 default-action origin (keyword | string)
Treeorigin
String length1 to 32
Optionsigp, egp, incomplete
Introduced25.3.R2

Platforms

7705 SAR Gen 2

sr-label-index
Synopsis Enter the sr-label-index context
Contextconfigure policy-options policy-statement named-item-64 default-action sr-label-index
Treesr-label-index

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.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefer-igp boolean
Synopsis Use the SR label index from the IGP route when present
Contextconfigure policy-options policy-statement named-item-64 default-action sr-label-index prefer-igp boolean
Treeprefer-igp

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.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

value (string | number)
Synopsis BGP SR label index associated with routes
Contextconfigure policy-options policy-statement named-item-64 default-action sr-label-index value (string | number)
Treevalue

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 length1 to 32
Range0 to 1048575
Introduced25.3.R2

Platforms

7705 SAR Gen 2

sr-maintenance-policy (param-midstring | string)
Synopsis SR maintenance policy as an action
Context configure policy-options policy-statement named-item-64 default-action sr-maintenance-policy (param-midstring | string)
Treesr-maintenance-policy

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 length1 to 32
Introduced25.3.R2

Platforms

7705 SAR Gen 2

tag (number | string)
Synopsis OSPF RIP or IS-IS tag applied to routes
Contextconfigure policy-options policy-statement named-item-64 default-action tag (number | string)
Treetag
String length1 to 32
Range1 to 4294967295
Introduced25.3.R2

Platforms

7705 SAR Gen 2

entry [entry-id] number
Synopsis Enter the entry list instance
Context configure policy-options policy-statement named-item-64 entry number
Treeentry
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[entry-id] number
Synopsis Entry ID for a route policy entry
Context configure policy-options policy-statement named-item-64 entry number
Treeentry
Range1 to 4294967295

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

action
Synopsis Enable the action context
Context configure policy-options policy-statement named-item-64 entry number action
Treeaction
Introduced25.3.R2

Platforms

7705 SAR Gen 2

action-type keyword
Synopsis Action type for routes matching the route policy entry
Contextconfigure policy-options policy-statement named-item-64 entry number action action-type keyword
Treeaction-type
Optionsaccept, reject, next-entry, next-policy

Notes

This element is mandatory.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

advertise-label keyword
Synopsis Label allocation for matched BGP routes
Contextconfigure policy-options policy-statement named-item-64 entry number action advertise-label keyword
Treeadvertise-label

Description

This command configures the label allocation method for advertised routes. The effect of this command depends on the context where the associated policy is applied. 

Optionsper-prefix, pop, pop-and-forward
Introduced25.3.R2

Platforms

7705 SAR Gen 2

aigp-metric
Synopsis Enter the aigp-metric context
Context configure policy-options policy-statement named-item-64 entry number action aigp-metric
Treeaigp-metric
Introduced25.3.R2

Platforms

7705 SAR Gen 2

add (number | string)
Synopsis AIGP metric to add
Context configure policy-options policy-statement named-item-64 entry number action aigp-metric add (number | string)
Treeadd
String length1 to 32
Range0 to 4294967295

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

set (keyword | number | string)
Synopsis AIGP metric
Contextconfigure policy-options policy-statement named-item-64 entry number action aigp-metric set (keyword | number | string)
Treeset
String length1 to 32
Range0 to 4294967295
Optionsigp

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

as-path
Synopsis Enter the as-path context
Context configure policy-options policy-statement named-item-64 entry number action as-path
Treeas-path
Introduced25.3.R2

Platforms

7705 SAR Gen 2

add (param-midstring | string)
Synopsis AS path to add
Contextconfigure policy-options policy-statement named-item-64 entry number action as-path add (param-midstring | string)
Treeadd
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

replace (param-midstring | string)
Synopsis AS path to replace
Context configure policy-options policy-statement named-item-64 entry number action as-path replace (param-midstring | string)
Treereplace
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

as-path-prepend
Synopsis Enter the as-path-prepend context
Contextconfigure policy-options policy-statement named-item-64 entry number action as-path-prepend
Treeas-path-prepend
Introduced25.3.R2

Platforms

7705 SAR Gen 2

bgp-high-priority boolean
Synopsis Tag routes as high priority for fast table updates
Contextconfigure policy-options policy-statement named-item-64 entry number action bgp-high-priority boolean
Treebgp-high-priority

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 to false, no routes are tagged for faster route table updates.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

bgp-med
Synopsis Enter the bgp-med context
Context configure policy-options policy-statement named-item-64 entry number action bgp-med
Treebgp-med
Introduced25.3.R2

Platforms

7705 SAR Gen 2

set (keyword | number | string)
Synopsis BGP-MED assignment
Context configure policy-options policy-statement named-item-64 entry number action bgp-med set (keyword | number | string)
Treeset
String length1 to 32
Range0 to 4294967295
Optionsigp, min-igp

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

bgp-tunnel-metric
Synopsis Enter the bgp-tunnel-metric context
Contextconfigure policy-options policy-statement named-item-64 entry number action bgp-tunnel-metric
Treebgp-tunnel-metric

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.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefer-aigp boolean
Synopsis Use AIGP attribute as tunnel metric when present
Contextconfigure policy-options policy-statement named-item-64 entry number action bgp-tunnel-metric prefer-aigp boolean
Treeprefer-aigp

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.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefer-med boolean
Synopsis Use MED attribute as tunnel metric when present
Contextconfigure policy-options policy-statement named-item-64 entry number action bgp-tunnel-metric prefer-med boolean
Treeprefer-med

Description

When configured to true, if a BGP-LU route is selected for installation in the TTM and is matched by this action in a BGP import policy, the TTM metric of the tunnel is set to the MED metric value of the BGP-LU route with the IGP cost to reach the BGP next hop added to it.

When configured to false, the BGP tunnel metric associated with the BGP-LU route accepted by this policy action is not determined using the MED attribute.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

value (string | number)
Synopsis BGP tunnel table metric value
Context configure policy-options policy-statement named-item-64 entry number action bgp-tunnel-metric value (string | number)
Treevalue

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:

  • the prefer-aigp option is set to false

  • the prefer-aigp option is set to true but the BGP-LU route does not have an AIGP attribute

String length1 to 32
Range0 to 4294967295
Introduced25.3.R2

Platforms

7705 SAR Gen 2

community
Synopsis Enter the community context
Context configure policy-options policy-statement named-item-64 entry number action community
Treecommunity
Introduced25.3.R2

Platforms

7705 SAR Gen 2

add (param-midstring-64 | string)
Synopsis List of community names to add
Context configure policy-options policy-statement named-item-64 entry number action community add (param-midstring-64 | string)
Treeadd
String length1 to 64
Max. instances28

Notes

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

This element is ordered by the user.

Introduced 25.3.R2

Platforms

7705 SAR Gen 2

remove (param-midstring-64 | string)
Synopsis List of community names to remove
Context configure policy-options policy-statement named-item-64 entry number action community remove (param-midstring-64 | string)
Treeremove
String length1 to 64
Max. instances28

Notes

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

This element is ordered by the user.

Introduced 25.3.R2

Platforms

7705 SAR Gen 2

replace (param-midstring-64 | string)
Synopsis List of community names to replace
Context configure policy-options policy-statement named-item-64 entry number action community replace (param-midstring-64 | string)
Treereplace
String length1 to 64
Max. instances28

Notes

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

This element is ordered by the user.

Introduced 25.3.R2

Platforms

7705 SAR Gen 2

create-mpls-tunnel boolean
Synopsis Create an MPLS tunnel
Context configure policy-options policy-statement named-item-64 entry number action create-mpls-tunnel boolean
Treecreate-mpls-tunnel

Description

When configured to true, the router creates an MPLS tunnel.

This command is supported for only the following address families:

  • evpn

  • ipv4

  • ipv6

  • label-ipv4

  • label-ipv6

  • vpn-ipv4

  • vpn-ipv6

Defaultfalse
Introduced 25.3.R2

Platforms

7705 SAR Gen 2

damping (keyword | param-midstring | string)
Synopsis Damping profile used for routes
Context configure policy-options policy-statement named-item-64 entry number action damping (keyword | param-midstring | string)
Treedamping
String length1 to 32
Optionsnone
Introduced25.3.R2

Platforms

7705 SAR Gen 2

flex-algo (string | number)
Synopsis Flexible algorithm for BGP next-hop autobind operation
Contextconfigure policy-options policy-statement named-item-64 entry number action flex-algo (string | number)
Treeflex-algo

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 length1 to 32
Range128 to 255
Introduced25.3.R2

Platforms

7705 SAR Gen 2

metric
Synopsis Enter the metric context
Context configure policy-options policy-statement named-item-64 entry number action metric
Treemetric
Introduced25.3.R2

Platforms

7705 SAR Gen 2

add (number | string)
Synopsis Metric to add
Contextconfigure policy-options policy-statement named-item-64 entry number action metric add (number | string)
Treeadd
String length1 to 32
Range0 to 4294967295

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

set (number | string)
Synopsis Metric to assign
Context configure policy-options policy-statement named-item-64 entry number action metric set (number | string)
Treeset
String length1 to 32
Range0 to 4294967295

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

subtract (number | string)
Synopsis Metric to subtract
Context configure policy-options policy-statement named-item-64 entry number action metric subtract (number | string)
Treesubtract
String length1 to 32
Range0 to 4294967295

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

next-hop (keyword | ipv4-address-no-zone | ipv6-address-no-zone | string)
Synopsis Next-hop IP address applied to routes
Contextconfigure policy-options policy-statement named-item-64 entry number action next-hop (keyword | ipv4-address-no-zone | ipv6-address-no-zone | string)
Treenext-hop
String length1 to 32
Optionspeer-address, self
Introduced 25.3.R2

Platforms

7705 SAR Gen 2

origin (keyword | string)
Synopsis BGP origin for routes that are exported into BGP
Contextconfigure policy-options policy-statement named-item-64 entry number action origin (keyword | string)
Treeorigin
String length1 to 32
Optionsigp, egp, incomplete
Introduced25.3.R2

Platforms

7705 SAR Gen 2

sr-label-index
Synopsis Enter the sr-label-index context
Contextconfigure policy-options policy-statement named-item-64 entry number action sr-label-index
Treesr-label-index

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.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefer-igp boolean
Synopsis Use the SR label index from the IGP route when present
Contextconfigure policy-options policy-statement named-item-64 entry number action sr-label-index prefer-igp boolean
Treeprefer-igp

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.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

value (string | number)
Synopsis BGP SR label index associated with routes
Contextconfigure policy-options policy-statement named-item-64 entry number action sr-label-index value (string | number)
Treevalue

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 length1 to 32
Range0 to 1048575
Introduced25.3.R2

Platforms

7705 SAR Gen 2

sr-maintenance-policy (param-midstring | string)
Synopsis SR maintenance policy as an action
Context configure policy-options policy-statement named-item-64 entry number action sr-maintenance-policy (param-midstring | string)
Treesr-maintenance-policy

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 length1 to 32
Introduced25.3.R2

Platforms

7705 SAR Gen 2

tag (number | string)
Synopsis OSPF RIP or IS-IS tag applied to routes
Contextconfigure policy-options policy-statement named-item-64 entry number action tag (number | string)
Treetag
String length1 to 32
Range1 to 4294967295
Introduced25.3.R2

Platforms

7705 SAR Gen 2

type (number | string)
Synopsis OSPF metric type applied to routes
Context configure policy-options policy-statement named-item-64 entry number action type (number | string)
Treetype
String length1 to 32
Range1 to 2
Introduced 25.3.R2

Platforms

7705 SAR Gen 2

conditional-expression
Synopsis Enable the conditional-expression context
Contextconfigure policy-options policy-statement named-item-64 entry number conditional-expression
Treeconditional-expression
Introduced25.3.R2

Platforms

7705 SAR Gen 2

from
Synopsis Enable the from context
Context configure policy-options policy-statement named-item-64 entry number from
Treefrom

Description

Commands in this context configure policy match criteria based on the route’s source or the protocol from which it is received. If conditions are not specified, all route sources are considered to match.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

aggregate-contributor boolean
Synopsis Enable aggregate route match criterion
Contextconfigure policy-options policy-statement named-item-64 entry number from aggregate-contributor boolean
Treeaggregate-contributor

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.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

as-path
Synopsis Enter the as-path context
Context configure policy-options policy-statement named-item-64 entry number from as-path
Treeas-path
Introduced25.3.R2

Platforms

7705 SAR Gen 2

group (param-midstring | string)
Synopsis AS path group as a match criterion
Context configure policy-options policy-statement named-item-64 entry number from as-path group (param-midstring | string)
Treegroup
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

length
Synopsis Enter the length context
Context configure policy-options policy-statement named-item-64 entry number from as-path length
Treelength
Introduced25.3.R2

Platforms

7705 SAR Gen 2

name (param-midstring | string)
Synopsis AS path name to match
Context configure policy-options policy-statement named-item-64 entry number from as-path name (param-midstring | string)
Treename

Description

This command specifies an AS path regular expression name for the route policy entry.

Policy parameters must be enclosed by at-signs (@) and may be midstring; for example, "@variable@," "start@variable@end", "@variable@end", or "start@variable@".

String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

cluster-id
Synopsis Enter the cluster-id context
Context configure policy-options policy-statement named-item-64 entry number from cluster-id
Treecluster-id
Introduced25.3.R2

Platforms

7705 SAR Gen 2

ip-address ipv4-prefix-with-host-bits
Synopsis Cluster list attribute IP addresses for route matching
Contextconfigure policy-options policy-statement named-item-64 entry number from cluster-id ip-address ipv4-prefix-with-host-bits
Treeip-address
Max. instances5

Notes

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

This element is ordered by the user.

Introduced 25.3.R2

Platforms

7705 SAR Gen 2

color number
Synopsis Color ID as a match criterion
Context configure policy-options policy-statement named-item-64 entry number from color number
Treecolor

Description

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

Range0 to 4294967295
Introduced25.3.R2

Platforms

7705 SAR Gen 2

community
Synopsis Enter the community context
Context configure policy-options policy-statement named-item-64 entry number from community
Treecommunity
Introduced25.3.R2

Platforms

7705 SAR Gen 2

count
Synopsis Enter the count context
Context configure policy-options policy-statement named-item-64 entry number from community count
Treecount
Introduced25.3.R2

Platforms

7705 SAR Gen 2

expression string
Synopsis Community expression statement as a match criterion
Contextconfigure policy-options policy-statement named-item-64 entry number from community expression string
Treeexpression

Description

This command configures a community expression statement as a match criterion for the policy statement. This statement is a logical expression string composed of logical operators (keywords AND, OR, NOT), community names delimited by square brackets [], and parentheses ( ) to group subexpressions. If the expression contains special characters (for example, #, $, spaces), the entire string must be enclosed in double quotes.

The expression specified must already be defined using the configure policy-options community expression expr command.

The following are examples of valid logical expressions:

"[community_list_A] OR ([community_list_B] AND [community_list_C])"

"NOT [community_list_A]"

"[community_list_A] AND [community_list_B] OR [community_list_C]"

"NOT ([community_list_A] OR [community_list_B] OR [community_list_C])"

String length1 to 900

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

name (param-midstring-64 | string)
Synopsis Community list name
Context configure policy-options policy-statement named-item-64 entry number from community name (param-midstring-64 | string)
Treename
String length1 to 64

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

distinguisher number
Synopsis SR policy distinguisher as a match criterion
Contextconfigure policy-options policy-statement named-item-64 entry number from distinguisher number
Treedistinguisher

Description

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

Range0 to 4294967295
Introduced25.3.R2

Platforms

7705 SAR Gen 2

endpoint (ipv4-address-no-zone | ipv6-address-no-zone)
Synopsis SR policy endpoint address as a match criterion
Contextconfigure policy-options policy-statement named-item-64 entry number from endpoint (ipv4-address-no-zone | ipv6-address-no-zone)
Treeendpoint

Description

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

evpn-type keyword
Synopsis EVPN type as a match criterion for the entry
Contextconfigure policy-options policy-statement named-item-64 entry number from evpn-type keyword
Treeevpn-type
Optionsethernet-auto-discovery, mac-ip-advertisement, inclusive-multicast, ethernet-segment, ip-prefix, selective-multicast, multicast-join-sync, multicast-leave-sync, selective-pmsi-auto-discovery
Introduced25.3.R2

Platforms

7705 SAR Gen 2

family keyword
Synopsis Address family as the match condition
Contextconfigure policy-options policy-statement named-item-64 entry number from family keyword
Treefamily

Description

This command specifies address families as matching conditions.

Optionsipv4, 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, flow-vpn-ipv4, flow-vpn-ipv6
Max. instances20
Introduced 25.3.R2

Platforms

7705 SAR Gen 2

host-ip (param-midstring | string)
Synopsis Prefix list of IGMP host IP addresses for matching
Contextconfigure policy-options policy-statement named-item-64 entry number from host-ip (param-midstring | string)
Treehost-ip
String length1 to 32
Introduced25.3.R2

Platforms

7705 SAR Gen 2

interface (named-item | interface-name | interface-name | interface-name)
Synopsis Interface name as match criterion
Context configure policy-options policy-statement named-item-64 entry number from interface (named-item | interface-name | interface-name | interface-name)
Treeinterface
String length1 to 32
Max. instances1

Notes

This element is ordered by the user.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

interface-subnets
Synopsis Enter the interface-subnets context
Contextconfigure policy-options policy-statement named-item-64 entry number from interface-subnets
Treeinterface-subnets

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:

  • export, when used with OSPFv2, OSPFv3, IS-IS, RIP, RIPng, and BGP

  • route-table-import, when used with BGP

  • vrf-export, when used with MP-BGP

Introduced25.3.R2

Platforms

7705 SAR Gen 2

ip-int-name interface-name
Synopsis Interface name as the match criterion
Contextconfigure policy-options policy-statement named-item-64 entry number from interface-subnets ip-int-name interface-name
Treeip-int-name

Description

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

String length1 to 32
Max. instances10

Notes

This element is ordered by the user.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

local-preference
Synopsis Enter the local-preference context
Contextconfigure policy-options policy-statement named-item-64 entry number from local-preference
Treelocal-preference
Introduced25.3.R2

Platforms

7705 SAR Gen 2

metric
Synopsis Enter the metric context
Context configure policy-options policy-statement named-item-64 entry number from metric
Treemetric
Introduced25.3.R2

Platforms

7705 SAR Gen 2

value (number | string)
Synopsis Local preference value or variable name
Contextconfigure policy-options policy-statement named-item-64 entry number from metric value (number | string)
Treevalue
String length1 to 32
Range0 to 4294967295
Introduced25.3.R2

Platforms

7705 SAR Gen 2

neighbor
Synopsis Enter the neighbor context
Context configure policy-options policy-statement named-item-64 entry number from neighbor
Treeneighbor
Introduced25.3.R2

Platforms

7705 SAR Gen 2

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 named-item-64 entry number from neighbor ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)
Treeip-address

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefix-list (param-midstring | string)
Synopsis Name to match the neighbor prefix list
Contextconfigure policy-options policy-statement named-item-64 entry number from neighbor prefix-list (param-midstring | string)
Treeprefix-list
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

next-hop
Synopsis Enter the next-hop context
Context configure policy-options policy-statement named-item-64 entry number from next-hop
Treenext-hop
Introduced25.3.R2

Platforms

7705 SAR Gen 2

ip-address (ipv4-address-no-zone | ipv6-address-no-zone)
Synopsis IP address of the next hop to match
Context configure policy-options policy-statement named-item-64 entry number from next-hop ip-address (ipv4-address-no-zone | ipv6-address-no-zone)
Treeip-address

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefix-list (param-midstring | string)
Synopsis Name of a next hop prefix list to match
Contextconfigure policy-options policy-statement named-item-64 entry number from next-hop prefix-list (param-midstring | string)
Treeprefix-list
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

origin keyword
Synopsis Route origin match criteria
Context configure policy-options policy-statement named-item-64 entry number from origin keyword
Treeorigin

Description

This command configures a match criteria for the origin attribute of the route. The origin attribute is applicable to BGP routes and to the following subscriber-management routes:

Host routes (for example, IPv4 /32 address, or IPv6 SLAAC prefix) carry the origin attribute with AAA, dynamic, or static values, depending on the address assignment method. For CUPS hosts, the origin attribute is always PFCP. Host routes can also be distinguished using the sub-mgmt option for the protocol command. 

Dynamically provisioned prefixes or loopback addresses use AAA or PFCP origin values, depending on the protocol that provides the prefix and address. Dynamic routes can also be distinguished using the direct option for the protocol command.

Statically configured prefixes under the subscriber interface do not have an origin attribute. These routes can be distinguished using the direct option for the protocol command.

Framed routes for non-CUPS hosts do not have an origin attribute. Framed routes for CUPS hosts use PFCP for the origin attribute. Alternatively, framed routes can be distinguished using the managed option for the protocol command.

The values that are specific to subscriber-management routes are never carried in BGP updates as part of the BGP origin attribute and are not visible within the BGP process.

Optionsigp, egp, incomplete, any, aaa, dynamic, static, bonding, pfcp
Introduced25.3.R2

Platforms

7705 SAR Gen 2

origin-validation-state keyword
Synopsis Origin validation state used for match criteria
Contextconfigure policy-options policy-statement named-item-64 entry number from origin-validation-state keyword
Treeorigin-validation-state

Description

This command specifies a validation state that is used to match BGP routes based on their origin validation state.

Optionsvalid, not-found, invalid
Introduced25.3.R2

Platforms

7705 SAR Gen 2

policy-variables
Synopsis Enter the policy-variables context
Contextconfigure policy-options policy-statement named-item-64 entry number from policy-variables
Treepolicy-variables
Introduced25.3.R2

Platforms

7705 SAR Gen 2

name [variable-name] policy-var-name
Synopsis Enter the name list instance
Context configure policy-options policy-statement named-item-64 entry number from policy-variables name policy-var-name
Treename
Max. instances10
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[variable-name] policy-var-name
Synopsis Global variable name used to reference policy functions
Contextconfigure policy-options policy-statement named-item-64 entry number from policy-variables name policy-var-name
Treename
String length1 to 32

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

address (ipv4-address-no-zone | ipv6-address-no-zone)
Synopsis IP address of the policy variable
Context configure policy-options policy-statement named-item-64 entry number from policy-variables name policy-var-name address (ipv4-address-no-zone | ipv6-address-no-zone)
Treeaddress

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

decimal decimal-number
Synopsis Attribute decimal to which variable name is resolved
Contextconfigure policy-options policy-statement named-item-64 entry number from policy-variables name policy-var-name decimal decimal-number
Treedecimal
Range0.000 to 4294967295.000

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

number number
Synopsis Numerical value of the policy variable
Contextconfigure policy-options policy-statement named-item-64 entry number from policy-variables name policy-var-name number number
Treenumber
Range0 to 4294967295

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

value named-item
Synopsis Policy variable value
Context configure policy-options policy-statement named-item-64 entry number from policy-variables name policy-var-name value named-item
Treevalue
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefix-list (param-midstring-64 | string)
Synopsis Prefix list as match criterion
Context configure policy-options policy-statement named-item-64 entry number from prefix-list (param-midstring-64 | string)
Treeprefix-list
String length1 to 64
Max. instances28

Notes

This element is ordered by the user.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefix-list-override [prefix-list] string
Synopsis Enter the prefix-list-override list instance
Contextconfigure policy-options policy-statement named-item-64 entry number from prefix-list-override string
Treeprefix-list-override

Description

Commands in this context convert a prefix list to a specific match type. The routing policy uses the converted list as a match condition.

The prefix list to be converted can be specified by its name, as an expression containing the name of a global variable that holds the name of the prefix list, or as an expression containing the name of a subroutine variable that holds the name of the prefix list.

Max. instances1
Introduced25.3.R2

Platforms

7705 SAR Gen 2

protocol
Synopsis Enter the protocol context
Context configure policy-options policy-statement named-item-64 entry number from protocol
Treeprotocol

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.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

instance (keyword | number)
Synopsis Instance for protocol IS-IS, OSPF, or OSPFv3 to match
Contextconfigure policy-options policy-statement named-item-64 entry number from protocol instance (keyword | number)
Treeinstance

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).

Range0 to 127
Optionsall
Default0
Introduced 25.3.R2

Platforms

7705 SAR Gen 2

name keyword
Synopsis List of protocol names as the match criterion
Contextconfigure policy-options policy-statement named-item-64 entry number from protocol name keyword
Treename

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:

  • direct

  • static

  • isis

  • aggregate

  • bgp

  • bgp-label

  • direct-interface

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

The protocol direct-interface route type matches the specific direct interface host IPv4 /32 and IPv6 /128 routes.

Optionsdirect, 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, video, evpn-ifl-host
Max. instances5
Introduced25.3.R2

Platforms

7705 SAR Gen 2

route-distinguisher-list (param-midstring-64 | string)
Synopsis Route distinguisher list as a match criterion
Contextconfigure policy-options policy-statement named-item-64 entry number from route-distinguisher-list (param-midstring-64 | string)
Treeroute-distinguisher-list

Description

This command specifies the (possibly parameterized) name of a route distinguisher (RD) list.

This match condition is supported by policies applied as VRF-import or BGP peer import policies. A BGP route can match a policy entry with this match criterion if the NLRI field contains an RD that is matched by at least one of the entries in the RD list.

BGP routes belonging to address families other than VPN-IPv4, VPN-IPv6, MCAST-VPN-IPv4, MCAST-VPN-IPv6, EVPN, FlowSpec-VPN IPv4, FlowSpec-VPN IPv6, MVPN-IPv4, or MVPN-IPv6 route do not match policy entries with this match criterion.

String length1 to 64
Introduced25.3.R2

Platforms

7705 SAR Gen 2

source-address
Synopsis Enter the source-address context
Contextconfigure policy-options policy-statement named-item-64 entry number from source-address
Treesource-address
Introduced25.3.R2

Platforms

7705 SAR Gen 2

ip-address (ipv4-address-no-zone | ipv6-address-no-zone)
Synopsis Source IP address to match
Context configure policy-options policy-statement named-item-64 entry number from source-address ip-address (ipv4-address-no-zone | ipv6-address-no-zone)
Treeip-address

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefix-list (param-midstring | string)
Synopsis Name of a source address prefix list to match
Contextconfigure policy-options policy-statement named-item-64 entry number from source-address prefix-list (param-midstring | string)
Treeprefix-list
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

state keyword
Synopsis State used as a match criterion
Context configure policy-options policy-statement named-item-64 entry number from state keyword
Treestate

Description

This command configures a criterion that identifies in resilient gateways which routes are associated with an active context and which routes are associated with a standby context.

Optionssrrp-master, srrp-non-master, ipsec-master-with-peer, ipsec-master-without-peer, ipsec-non-master, fsg-active, fsg-standby, fsg-active-path-restoration
Introduced25.3.R2

Platforms

7705 SAR Gen 2

tag (number | keyword)
Synopsis Route tag used as a match criterion
Context configure policy-options policy-statement named-item-64 entry number from tag (number | keyword)
Treetag
Range1 to 4294967295
Optionsno-tag
Introduced25.3.R2

Platforms

7705 SAR Gen 2

to
Synopsis Enable the to context
Context configure policy-options policy-statement named-item-64 entry number to
Treeto
Introduced25.3.R2

Platforms

7705 SAR Gen 2

neighbor
Synopsis Enter the neighbor context
Context configure policy-options policy-statement named-item-64 entry number to neighbor
Treeneighbor
Introduced25.3.R2

Platforms

7705 SAR Gen 2

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 named-item-64 entry number to neighbor ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)
Treeip-address

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefix-list (param-midstring | string)
Synopsis Name to match the neighbor prefix list
Contextconfigure policy-options policy-statement named-item-64 entry number to neighbor prefix-list (param-midstring | string)
Treeprefix-list
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefix-list (param-midstring-64 | string)
Synopsis Prefix list as match criterion
Context configure policy-options policy-statement named-item-64 entry number to prefix-list (param-midstring-64 | string)
Treeprefix-list
String length1 to 64
Max. instances28

Notes

This element is ordered by the user.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

protocol
Synopsis Enter the protocol context
Context configure policy-options policy-statement named-item-64 entry number to protocol
Treeprotocol
Introduced25.3.R2

Platforms

7705 SAR Gen 2

name keyword
Synopsis Protocol name to match
Context configure policy-options policy-statement named-item-64 entry number to protocol name keyword
Treename
Optionsbgp, isis, ospf, rip, bgp-vpn, ospf3, ldp, vpn-leak, ripng, bgp-label, evpn-ifl
Max. instances2
Introduced25.3.R2

Platforms

7705 SAR Gen 2

named-entry [entry-name] named-item-255
Synopsis Enter the named-entry list instance
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255
Treenamed-entry
Max. instances16384

Notes

This element is ordered by the user.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

[entry-name] named-item-255
Synopsis Route policy entry name
Context configure policy-options policy-statement named-item-64 named-entry named-item-255
Treenamed-entry
String length1 to 255

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

action
Synopsis Enable the action context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action
Treeaction
Introduced25.3.R2

Platforms

7705 SAR Gen 2

advertise-label keyword
Synopsis Label allocation for matched BGP routes
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 action advertise-label keyword
Treeadvertise-label

Description

This command configures the label allocation method for advertised routes. The effect of this command depends on the context where the associated policy is applied. 

Optionsper-prefix, pop, pop-and-forward
Introduced25.3.R2

Platforms

7705 SAR Gen 2

aigp-metric
Synopsis Enter the aigp-metric context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action aigp-metric
Treeaigp-metric
Introduced25.3.R2

Platforms

7705 SAR Gen 2

add (number | string)
Synopsis AIGP metric to add
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action aigp-metric add (number | string)
Treeadd
String length1 to 32
Range0 to 4294967295

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

set (keyword | number | string)
Synopsis AIGP metric
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 action aigp-metric set (keyword | number | string)
Treeset
String length1 to 32
Range0 to 4294967295
Optionsigp

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

as-path
Synopsis Enter the as-path context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action as-path
Treeas-path
Introduced25.3.R2

Platforms

7705 SAR Gen 2

add (param-midstring | string)
Synopsis AS path to add
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 action as-path add (param-midstring | string)
Treeadd
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

replace (param-midstring | string)
Synopsis AS path to replace
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action as-path replace (param-midstring | string)
Treereplace
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

as-path-prepend
Synopsis Enter the as-path-prepend context
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 action as-path-prepend
Treeas-path-prepend
Introduced25.3.R2

Platforms

7705 SAR Gen 2

bgp-high-priority boolean
Synopsis Tag routes as high priority for fast table updates
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 action bgp-high-priority boolean
Treebgp-high-priority

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 to false, no routes are tagged for faster route table updates.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

bgp-med
Synopsis Enter the bgp-med context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action bgp-med
Treebgp-med
Introduced25.3.R2

Platforms

7705 SAR Gen 2

set (keyword | number | string)
Synopsis BGP-MED assignment
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action bgp-med set (keyword | number | string)
Treeset
String length1 to 32
Range0 to 4294967295
Optionsigp, min-igp

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

bgp-tunnel-metric
Synopsis Enter the bgp-tunnel-metric context
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 action bgp-tunnel-metric
Treebgp-tunnel-metric

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.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefer-aigp boolean
Synopsis Use AIGP attribute as tunnel metric when present
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 action bgp-tunnel-metric prefer-aigp boolean
Treeprefer-aigp

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.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefer-med boolean
Synopsis Use MED attribute as tunnel metric when present
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 action bgp-tunnel-metric prefer-med boolean
Treeprefer-med

Description

When configured to true, if a BGP-LU route is selected for installation in the TTM and is matched by this action in a BGP import policy, the TTM metric of the tunnel is set to the MED metric value of the BGP-LU route with the IGP cost to reach the BGP next hop added to it.

When configured to false, the BGP tunnel metric associated with the BGP-LU route accepted by this policy action is not determined using the MED attribute.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

value (string | number)
Synopsis BGP tunnel table metric value
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action bgp-tunnel-metric value (string | number)
Treevalue

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:

  • the prefer-aigp option is set to false

  • the prefer-aigp option is set to true but the BGP-LU route does not have an AIGP attribute

String length1 to 32
Range0 to 4294967295
Introduced25.3.R2

Platforms

7705 SAR Gen 2

community
Synopsis Enter the community context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action community
Treecommunity
Introduced25.3.R2

Platforms

7705 SAR Gen 2

add (param-midstring-64 | string)
Synopsis List of community names to add
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action community add (param-midstring-64 | string)
Treeadd
String length1 to 64
Max. instances28

Notes

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

This element is ordered by the user.

Introduced 25.3.R2

Platforms

7705 SAR Gen 2

remove (param-midstring-64 | string)
Synopsis List of community names to remove
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action community remove (param-midstring-64 | string)
Treeremove
String length1 to 64
Max. instances28

Notes

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

This element is ordered by the user.

Introduced 25.3.R2

Platforms

7705 SAR Gen 2

replace (param-midstring-64 | string)
Synopsis List of community names to replace
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action community replace (param-midstring-64 | string)
Treereplace
String length1 to 64
Max. instances28

Notes

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

This element is ordered by the user.

Introduced 25.3.R2

Platforms

7705 SAR Gen 2

create-mpls-tunnel boolean
Synopsis Create an MPLS tunnel
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action create-mpls-tunnel boolean
Treecreate-mpls-tunnel

Description

When configured to true, the router creates an MPLS tunnel.

This command is supported for only the following address families:

  • evpn

  • ipv4

  • ipv6

  • label-ipv4

  • label-ipv6

  • vpn-ipv4

  • vpn-ipv6

Defaultfalse
Introduced 25.3.R2

Platforms

7705 SAR Gen 2

damping (keyword | param-midstring | string)
Synopsis Damping profile used for routes
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action damping (keyword | param-midstring | string)
Treedamping
String length1 to 32
Optionsnone
Introduced25.3.R2

Platforms

7705 SAR Gen 2

flex-algo (string | number)
Synopsis Flexible algorithm for BGP next-hop autobind operation
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 action flex-algo (string | number)
Treeflex-algo

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 length1 to 32
Range128 to 255
Introduced25.3.R2

Platforms

7705 SAR Gen 2

metric
Synopsis Enter the metric context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action metric
Treemetric
Introduced25.3.R2

Platforms

7705 SAR Gen 2

add (number | string)
Synopsis Metric to add
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 action metric add (number | string)
Treeadd
String length1 to 32
Range0 to 4294967295

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

set (number | string)
Synopsis Metric to assign
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action metric set (number | string)
Treeset
String length1 to 32
Range0 to 4294967295

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

subtract (number | string)
Synopsis Metric to subtract
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action metric subtract (number | string)
Treesubtract
String length1 to 32
Range0 to 4294967295

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

next-hop (keyword | ipv4-address-no-zone | ipv6-address-no-zone | string)
Synopsis Next-hop IP address applied to routes
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 action next-hop (keyword | ipv4-address-no-zone | ipv6-address-no-zone | string)
Treenext-hop
String length1 to 32
Optionspeer-address, self
Introduced 25.3.R2

Platforms

7705 SAR Gen 2

origin (keyword | string)
Synopsis BGP origin for routes that are exported into BGP
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 action origin (keyword | string)
Treeorigin
String length1 to 32
Optionsigp, egp, incomplete
Introduced25.3.R2

Platforms

7705 SAR Gen 2

sr-label-index
Synopsis Enter the sr-label-index context
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 action sr-label-index
Treesr-label-index

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.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefer-igp boolean
Synopsis Use the SR label index from the IGP route when present
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 action sr-label-index prefer-igp boolean
Treeprefer-igp

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.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

value (string | number)
Synopsis BGP SR label index associated with routes
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 action sr-label-index value (string | number)
Treevalue

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 length1 to 32
Range0 to 1048575
Introduced25.3.R2

Platforms

7705 SAR Gen 2

sr-maintenance-policy (param-midstring | string)
Synopsis SR maintenance policy as an action
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 action sr-maintenance-policy (param-midstring | string)
Treesr-maintenance-policy

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 length1 to 32
Introduced25.3.R2

Platforms

7705 SAR Gen 2

tag (number | string)
Synopsis OSPF RIP or IS-IS tag applied to routes
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 action tag (number | string)
Treetag
String length1 to 32
Range1 to 4294967295
Introduced25.3.R2

Platforms

7705 SAR Gen 2

conditional-expression
Synopsis Enable the conditional-expression context
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 conditional-expression
Treeconditional-expression
Introduced25.3.R2

Platforms

7705 SAR Gen 2

from
Synopsis Enable the from context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from
Treefrom
Introduced25.3.R2

Platforms

7705 SAR Gen 2

aggregate-contributor boolean
Synopsis Enable aggregate route match criterion
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from aggregate-contributor boolean
Treeaggregate-contributor

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.

Defaultfalse
Introduced25.3.R2

Platforms

7705 SAR Gen 2

as-path
Synopsis Enter the as-path context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from as-path
Treeas-path
Introduced25.3.R2

Platforms

7705 SAR Gen 2

group (param-midstring | string)
Synopsis AS path group as a match criterion
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from as-path group (param-midstring | string)
Treegroup
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

length
Synopsis Enter the length context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from as-path length
Treelength
Introduced25.3.R2

Platforms

7705 SAR Gen 2

name (param-midstring | string)
Synopsis AS path name to match
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from as-path name (param-midstring | string)
Treename

Description

This command specifies an AS path regular expression name for the route policy entry.

Policy parameters must be enclosed by at-signs (@) and may be midstring; for example, "@variable@," "start@variable@end", "@variable@end", or "start@variable@".

String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

cluster-id
Synopsis Enter the cluster-id context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from cluster-id
Treecluster-id
Introduced25.3.R2

Platforms

7705 SAR Gen 2

ip-address ipv4-prefix-with-host-bits
Synopsis Cluster list attribute IP addresses for route matching
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from cluster-id ip-address ipv4-prefix-with-host-bits
Treeip-address
Max. instances5

Notes

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

This element is ordered by the user.

Introduced 25.3.R2

Platforms

7705 SAR Gen 2

color number
Synopsis Color ID as a match criterion
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from color number
Treecolor

Description

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

Range0 to 4294967295
Introduced25.3.R2

Platforms

7705 SAR Gen 2

community
Synopsis Enter the community context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from community
Treecommunity
Introduced25.3.R2

Platforms

7705 SAR Gen 2

count
Synopsis Enter the count context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from community count
Treecount
Introduced25.3.R2

Platforms

7705 SAR Gen 2

expression string
Synopsis Community expression statement as a match criterion
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from community expression string
Treeexpression

Description

This command configures a community expression statement as a match criterion for the policy statement. This statement is a logical expression string composed of logical operators (keywords AND, OR, NOT), community names delimited by square brackets [], and parentheses ( ) to group subexpressions. If the expression contains special characters (for example, #, $, spaces), the entire string must be enclosed in double quotes.

The expression specified must already be defined using the configure policy-options community expression expr command.

The following are examples of valid logical expressions:

"[community_list_A] OR ([community_list_B] AND [community_list_C])"

"NOT [community_list_A]"

"[community_list_A] AND [community_list_B] OR [community_list_C]"

"NOT ([community_list_A] OR [community_list_B] OR [community_list_C])"

String length1 to 900

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

name (param-midstring-64 | string)
Synopsis Community list name
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from community name (param-midstring-64 | string)
Treename
String length1 to 64

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

distinguisher number
Synopsis SR policy distinguisher as a match criterion
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from distinguisher number
Treedistinguisher

Description

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

Range0 to 4294967295
Introduced25.3.R2

Platforms

7705 SAR Gen 2

endpoint (ipv4-address-no-zone | ipv6-address-no-zone)
Synopsis SR policy endpoint address as a match criterion
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from endpoint (ipv4-address-no-zone | ipv6-address-no-zone)
Treeendpoint

Description

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

evpn-type keyword
Synopsis EVPN type as a match criterion for the entry
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from evpn-type keyword
Treeevpn-type
Optionsethernet-auto-discovery, mac-ip-advertisement, inclusive-multicast, ethernet-segment, ip-prefix, selective-multicast, multicast-join-sync, multicast-leave-sync, selective-pmsi-auto-discovery
Introduced25.3.R2

Platforms

7705 SAR Gen 2

family keyword
Synopsis Address family as the match condition
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from family keyword
Treefamily

Description

This command specifies address families as matching conditions.

Optionsipv4, 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, flow-vpn-ipv4, flow-vpn-ipv6
Max. instances20
Introduced 25.3.R2

Platforms

7705 SAR Gen 2

host-ip (param-midstring | string)
Synopsis Prefix list of IGMP host IP addresses for matching
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from host-ip (param-midstring | string)
Treehost-ip
String length1 to 32
Introduced25.3.R2

Platforms

7705 SAR Gen 2

interface (named-item | interface-name | interface-name | interface-name)
Synopsis Interface name as match criterion
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from interface (named-item | interface-name | interface-name | interface-name)
Treeinterface
String length1 to 32
Max. instances1

Notes

This element is ordered by the user.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

interface-subnets
Synopsis Enter the interface-subnets context
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from interface-subnets
Treeinterface-subnets

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:

  • export, when used with OSPFv2, OSPFv3, IS-IS, RIP, RIPng, and BGP

  • route-table-import, when used with BGP

  • vrf-export, when used with MP-BGP

Introduced25.3.R2

Platforms

7705 SAR Gen 2

ip-int-name interface-name
Synopsis Interface name as the match criterion
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from interface-subnets ip-int-name interface-name
Treeip-int-name

Description

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

String length1 to 32
Max. instances10

Notes

This element is ordered by the user.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

local-preference
Synopsis Enter the local-preference context
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from local-preference
Treelocal-preference
Introduced25.3.R2

Platforms

7705 SAR Gen 2

metric
Synopsis Enter the metric context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from metric
Treemetric
Introduced25.3.R2

Platforms

7705 SAR Gen 2

neighbor
Synopsis Enter the neighbor context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from neighbor
Treeneighbor
Introduced25.3.R2

Platforms

7705 SAR Gen 2

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 named-item-64 named-entry named-item-255 from neighbor ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)
Treeip-address

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefix-list (param-midstring | string)
Synopsis Name to match the neighbor prefix list
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from neighbor prefix-list (param-midstring | string)
Treeprefix-list
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

next-hop
Synopsis Enter the next-hop context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from next-hop
Treenext-hop
Introduced25.3.R2

Platforms

7705 SAR Gen 2

ip-address (ipv4-address-no-zone | ipv6-address-no-zone)
Synopsis IP address of the next hop to match
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from next-hop ip-address (ipv4-address-no-zone | ipv6-address-no-zone)
Treeip-address

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefix-list (param-midstring | string)
Synopsis Name of a next hop prefix list to match
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from next-hop prefix-list (param-midstring | string)
Treeprefix-list
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

origin keyword
Synopsis Route origin match criteria
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from origin keyword
Treeorigin

Description

This command configures a match criteria for the origin attribute of the route. The origin attribute is applicable to BGP routes and to the following subscriber-management routes:

Host routes (for example, IPv4 /32 address, or IPv6 SLAAC prefix) carry the origin attribute with AAA, dynamic, or static values, depending on the address assignment method. For CUPS hosts, the origin attribute is always PFCP. Host routes can also be distinguished using the sub-mgmt option for the protocol command. 

Dynamically provisioned prefixes or loopback addresses use AAA or PFCP origin values, depending on the protocol that provides the prefix and address. Dynamic routes can also be distinguished using the direct option for the protocol command.

Statically configured prefixes under the subscriber interface do not have an origin attribute. These routes can be distinguished using the direct option for the protocol command.

Framed routes for non-CUPS hosts do not have an origin attribute. Framed routes for CUPS hosts use PFCP for the origin attribute. Alternatively, framed routes can be distinguished using the managed option for the protocol command.

The values that are specific to subscriber-management routes are never carried in BGP updates as part of the BGP origin attribute and are not visible within the BGP process.

Optionsigp, egp, incomplete, any, aaa, dynamic, static, bonding, pfcp
Introduced25.3.R2

Platforms

7705 SAR Gen 2

policy-variables
Synopsis Enter the policy-variables context
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from policy-variables
Treepolicy-variables
Introduced25.3.R2

Platforms

7705 SAR Gen 2

name [variable-name] policy-var-name
Synopsis Enter the name list instance
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from policy-variables name policy-var-name
Treename

Description

Commands in this context configure global variables for use across BGP peers of a common type (transit, peer, customer, and so on).

Max. instances10
Introduced25.3.R2

Platforms

7705 SAR Gen 2

address (ipv4-address-no-zone | ipv6-address-no-zone)
Synopsis IP address of the policy variable
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from policy-variables name policy-var-name address (ipv4-address-no-zone | ipv6-address-no-zone)
Treeaddress

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

decimal decimal-number
Synopsis Attribute decimal to which variable name is resolved
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from policy-variables name policy-var-name decimal decimal-number
Treedecimal
Range0.000 to 4294967295.000

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

number number
Synopsis Numerical value of the policy variable
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from policy-variables name policy-var-name number number
Treenumber
Range0 to 4294967295

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

value named-item
Synopsis Policy variable value
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from policy-variables name policy-var-name value named-item
Treevalue
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefix-list (param-midstring-64 | string)
Synopsis Prefix list as match criterion
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from prefix-list (param-midstring-64 | string)
Treeprefix-list
String length1 to 64
Max. instances28

Notes

This element is ordered by the user.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefix-list-override [prefix-list] string
Synopsis Enter the prefix-list-override list instance
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from prefix-list-override string
Treeprefix-list-override

Description

Commands in this context convert a prefix list to a specific match type. The routing policy uses the converted list as a match condition.

The prefix list to be converted can be specified by its name, as an expression containing the name of a global variable that holds the name of the prefix list, or as an expression containing the name of a subroutine variable that holds the name of the prefix list.

Max. instances1
Introduced25.3.R2

Platforms

7705 SAR Gen 2

protocol
Synopsis Enter the protocol context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from protocol
Treeprotocol

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.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

instance (keyword | number)
Synopsis Instance for protocol IS-IS, OSPF, or OSPFv3 to match
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from protocol instance (keyword | number)
Treeinstance

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).

Range0 to 127
Optionsall
Default0
Introduced 25.3.R2

Platforms

7705 SAR Gen 2

name keyword
Synopsis List of protocol names as the match criterion
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from protocol name keyword
Treename

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:

  • direct

  • static

  • isis

  • aggregate

  • bgp

  • bgp-label

  • direct-interface

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

The protocol direct-interface route type matches the specific direct interface host IPv4 /32 and IPv6 /128 routes.

Optionsdirect, 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, video, evpn-ifl-host
Max. instances5
Introduced25.3.R2

Platforms

7705 SAR Gen 2

route-distinguisher-list (param-midstring-64 | string)
Synopsis Route distinguisher list as a match criterion
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from route-distinguisher-list (param-midstring-64 | string)
Treeroute-distinguisher-list

Description

This command specifies the (possibly parameterized) name of a route distinguisher (RD) list.

This match condition is supported by policies applied as VRF-import or BGP peer import policies. A BGP route can match a policy entry with this match criterion if the NLRI field contains an RD that is matched by at least one of the entries in the RD list.

BGP routes belonging to address families other than VPN-IPv4, VPN-IPv6, MCAST-VPN-IPv4, MCAST-VPN-IPv6, EVPN, FlowSpec-VPN IPv4, FlowSpec-VPN IPv6, MVPN-IPv4, or MVPN-IPv6 route do not match policy entries with this match criterion.

String length1 to 64
Introduced25.3.R2

Platforms

7705 SAR Gen 2

source-address
Synopsis Enter the source-address context
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 from source-address
Treesource-address
Introduced25.3.R2

Platforms

7705 SAR Gen 2

state keyword
Synopsis State used as a match criterion
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from state keyword
Treestate

Description

This command configures a criterion that identifies in resilient gateways which routes are associated with an active context and which routes are associated with a standby context.

Optionssrrp-master, srrp-non-master, ipsec-master-with-peer, ipsec-master-without-peer, ipsec-non-master, fsg-active, fsg-standby, fsg-active-path-restoration
Introduced25.3.R2

Platforms

7705 SAR Gen 2

tag (number | keyword)
Synopsis Route tag used as a match criterion
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 from tag (number | keyword)
Treetag
Range1 to 4294967295
Optionsno-tag
Introduced25.3.R2

Platforms

7705 SAR Gen 2

to
Synopsis Enable the to context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 to
Treeto
Introduced25.3.R2

Platforms

7705 SAR Gen 2

neighbor
Synopsis Enter the neighbor context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 to neighbor
Treeneighbor
Introduced25.3.R2

Platforms

7705 SAR Gen 2

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 named-item-64 named-entry named-item-255 to neighbor ip-address (ipv4-address-no-zone | ipv6-address-no-zone | ipv4-address-with-zone | ipv6-address-with-zone)
Treeip-address

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefix-list (param-midstring | string)
Synopsis Name to match the neighbor prefix list
Contextconfigure policy-options policy-statement named-item-64 named-entry named-item-255 to neighbor prefix-list (param-midstring | string)
Treeprefix-list
String length1 to 32

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefix-list (param-midstring-64 | string)
Synopsis Prefix list as match criterion
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 to prefix-list (param-midstring-64 | string)
Treeprefix-list
String length1 to 64
Max. instances28

Notes

This element is ordered by the user.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

protocol
Synopsis Enter the protocol context
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 to protocol
Treeprotocol
Introduced25.3.R2

Platforms

7705 SAR Gen 2

name keyword
Synopsis Protocol name to match
Context configure policy-options policy-statement named-item-64 named-entry named-item-255 to protocol name keyword
Treename
Optionsbgp, isis, ospf, rip, bgp-vpn, ospf3, ldp, vpn-leak, ripng, bgp-label, evpn-ifl
Max. instances2
Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefix-list [name] named-item-64

Synopsis Enter the prefix-list list instance
Contextconfigure policy-options prefix-list named-item-64
Treeprefix-list
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[name] named-item-64
Synopsis Prefix list name
Context configure policy-options prefix-list named-item-64
Treeprefix-list

Description

This command specifies the name for a prefix list.

Policy parameters must be enclosed by at-signs (@) and may be midstring; for example, "@variable@", "start@variable@end", "@variable@end", or "start@variable@".

String length1 to 64

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

prefix [ip-prefix] (ipv4-prefix | ipv6-prefix) type keyword
Synopsis Enter the prefix list instance
Contextconfigure policy-options prefix-list named-item-64 prefix (ipv4-prefix | ipv6-prefix) type keyword
Treeprefix
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[ip-prefix] (ipv4-prefix | ipv6-prefix)
Synopsis IP prefix associated with the prefix length
Contextconfigure policy-options prefix-list named-item-64 prefix (ipv4-prefix | ipv6-prefix) type keyword
Treeprefix

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

type keyword
Synopsis Prefix list match type
Context configure policy-options prefix-list named-item-64 prefix (ipv4-prefix | ipv6-prefix) type keyword
Treeprefix
Optionsexact, longer, through, range, to, address-mask

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

end-length number
Synopsis Prefix range end length
Context configure policy-options prefix-list named-item-64 prefix (ipv4-prefix | ipv6-prefix) type keyword end-length number
Treeend-length
Range0 to 128

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

mask-pattern [address] (ipv4-address-no-zone | ipv6-address-no-zone)
Synopsis Add a list entry for mask-pattern
Contextconfigure policy-options prefix-list named-item-64 prefix (ipv4-prefix | ipv6-prefix) type keyword mask-pattern (ipv4-address-no-zone | ipv6-address-no-zone)
Treemask-pattern

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

[address] (ipv4-address-no-zone | ipv6-address-no-zone)
Synopsis Address mask for matching routes to the prefix entry
Contextconfigure policy-options prefix-list named-item-64 prefix (ipv4-prefix | ipv6-prefix) type keyword mask-pattern (ipv4-address-no-zone | ipv6-address-no-zone)
Treemask-pattern

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.

  • The bitwise logical AND of the prefix address and its mask matches the bitwise logical AND of the route address and its mask.

  • 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.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

start-length number
Synopsis Start in the prefix range length
Context configure policy-options prefix-list named-item-64 prefix (ipv4-prefix | ipv6-prefix) type keyword start-length number
Treestart-length
Range0 to 128

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

through-length number
Synopsis Prefix through length
Context configure policy-options prefix-list named-item-64 prefix (ipv4-prefix | ipv6-prefix) type keyword through-length number
Treethrough-length
Range0 to 128

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

to-prefix [ip-prefix] (ipv4-prefix | ipv6-prefix)
Synopsis Add a list entry for to-prefix
Contextconfigure policy-options prefix-list named-item-64 prefix (ipv4-prefix | ipv6-prefix) type keyword to-prefix (ipv4-prefix | ipv6-prefix)
Treeto-prefix

Notes

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

Introduced25.3.R2

Platforms

7705 SAR Gen 2

[ip-prefix] (ipv4-prefix | ipv6-prefix)
Synopsis IP prefix for "to" match type
Context configure policy-options prefix-list named-item-64 prefix (ipv4-prefix | ipv6-prefix) type keyword to-prefix (ipv4-prefix | ipv6-prefix)
Treeto-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.

  • The route shares the same most-significant bits (specified by length1) with the prefix entry

  • The route shares the same most-significant bits (specified by length2) with this IP prefix value

  • 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.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

route-distinguisher-list [name] named-item-64

Synopsis Enter the route-distinguisher-list list instance
Contextconfigure policy-options route-distinguisher-list named-item-64
Treeroute-distinguisher-list
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[name] named-item-64
Synopsis Route distinguisher list name
Context configure policy-options route-distinguisher-list named-item-64
Treeroute-distinguisher-list

Description

This command creates a list of entries used to match the RD in BGP routes of specific address families.

String length1 to 64

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2

rd-entry [rd] string
Synopsis Add a list entry for rd-entry
Context configure policy-options route-distinguisher-list named-item-64 rd-entry string
Treerd-entry
Max. instances128
Introduced25.3.R2

Platforms

7705 SAR Gen 2

[rd] string
Synopsis Route distinguisher
Context configure policy-options route-distinguisher-list named-item-64 rd-entry string
Treerd-entry

Description

This command creates an RD matching entry containing an IPv4 address or ASN and the assigned number. The following formats are supported:

  • a.b.c.d/m:* – RD in IPv4 format with a wildcard character (such as 10.0.0.0/16:*)

  • a.b.c.d/m:n – RD in IPv4 format with a specific number (such as 10.0.0.2/32:535)

  • asn:* – RD in ASN format with a wildcard character (such as 65000:*)

  • asn:n – RD in ASN format with a specific number (such as 65000:535)

See the "Route distinguishers" section of the 7705 SAR Gen 2 Layer 3 Services Guide: IES and VPRN for information about Type values.

String length3 to 28

Notes

This element is part of a list key.

Introduced25.3.R2

Platforms

7705 SAR Gen 2