routing-policy
routing-policy
+ as-path-set name string
+ expression string
+ community-set name string
+ member (bgp-std-community-type | bgp-std-community-regexp-type | identityref | bgp-large-community-type | bgp-large-community-regexp-type)
+ policy name string
+ default-action
+ bgp
+ as-path
+ prepend
+ as-number (number | keyword)
+ repeat-n number
+ remove boolean
+ replace number
+ communities
+ add reference
+ remove reference
+ replace reference
+ local-preference
+ set number
+ med
+ set (number | keyword)
+ origin
+ set keyword
+ policy-result keyword
+ statement name string
+ action
+ bgp
+ as-path
+ prepend
+ as-number (number | keyword)
+ repeat-n number
+ remove boolean
+ replace number
+ communities
+ add reference
+ remove reference
+ replace reference
+ local-preference
+ set number
+ med
+ set (number | keyword)
+ origin
+ set keyword
+ policy-result keyword
+ match
+ bgp
+ as-path-length
+ operator keyword
+ unique boolean
+ value number
+ as-path-set reference
+ community-set reference
+ evpn
+ route-type number
+ family identityref
+ isis
+ level number
+ route-type keyword
+ ospf
+ area-id
+ instance-id number
+ route-type identityref
+ prefix-set reference
+ protocol identityref
+ prefix-set name string
+ prefix ip-prefix (ipv4-prefix | ipv6-prefix) mask-length-range string
+ tag-set name string
- tag-set-index number
routing-policy Descriptions
routing-policy
Description | Top-level container for all routing policy configuration | |
Context | routing-policy | |
Tree | routing-policy | |
Configurable | True | |
Platforms | Supported on all platforms |
as-path-set name string
Description | AS Path regular expressions for use in policy entries | |
Context | routing-policy as-path-set name string | |
Tree | as-path-set | |
Configurable | True | |
Platforms | Supported on all platforms |
name string
Description | A name used to identify the AS path regular expression | |
Context | routing-policy as-path-set name string | |
String Length | 1 to 255 | |
Configurable | True | |
Platforms | Supported on all platforms |
expression string
Description | A regular expression where each AS number is an elemental term | |
Context | routing-policy as-path-set name string expression string | |
Tree | expression | |
String Length | 1 to 65535 | |
Configurable | True | |
Platforms | Supported on all platforms |
community-set name string
Description | List of BGP community sets containing standard and large BGP communities | |
Context | routing-policy community-set name string | |
Tree | community-set | |
Configurable | True | |
Platforms | Supported on all platforms |
name string
Description | A name used to identify the community set | |
Context | routing-policy community-set name string | |
String Length | 1 to 255 | |
Configurable | True | |
Platforms | Supported on all platforms |
member (bgp-std-community-type | bgp-std-community-regexp-type | identityref | bgp-large-community-type | bgp-large-community-regexp-type)
Description | A standard BGP community value, regular expression or well-known name or else a large BGP community value or regular expression | |
Context | routing-policy community-set name string member (bgp-std-community-type | bgp-std-community-regexp-type | identityref | bgp-large-community-type | bgp-large-community-regexp-type) | |
Tree | member | |
Options |
| |
Configurable | True | |
Platforms | Supported on all platforms | |
Min. Elements | 1 |
policy name string
Description | List of policy definitions, keyed by unique name These policy definitions are expected to be referenced (by name) in policy in import-policy and/or export-policy statements. | |
Context | routing-policy policy name string | |
Tree | policy | |
Configurable | True | |
Platforms | Supported on all platforms |
name string
Description | A name used to identify the policy | |
Context | routing-policy policy name string | |
String Length | 1 to 255 | |
Configurable | True | |
Platforms | Supported on all platforms |
default-action
Description | Actions for routes that do not match any policy entry | |
Context | routing-policy policy name string default-action | |
Tree | default-action | |
Configurable | True | |
Platforms | Supported on all platforms |
bgp
Description | Enter the bgp context | |
Context | routing-policy policy name string default-action bgp | |
Tree | bgp | |
Configurable | True | |
Platforms | Supported on all platforms |
as-path
Description | Modify AS Path attribute of routes | |
Context | routing-policy policy name string default-action bgp as-path | |
Tree | as-path | |
Configurable | True | |
Platforms | Supported on all platforms |
prepend
Description | Prepend a BGP AS number to the AS Path attribute of routes | |
Context | routing-policy policy name string default-action bgp as-path prepend | |
Tree | prepend | |
Configurable | True | |
Platforms | Supported on all platforms |
as-number (number | keyword)
Description | The AS number to prepend to the AS Path attributes If 'auto' is specified then the peer's AS number is used in the context of an import policy and the local AS number is used in the context of an export policy. | |
Context | routing-policy policy name string default-action bgp as-path prepend as-number (number | keyword) | |
Tree | as-number | |
Range | 1 to 4294967295 | |
Options |
| |
Configurable | True | |
Platforms | Supported on all platforms |
repeat-n number
Description | The number of repetitions of the prepended AS number | |
Context | routing-policy policy name string default-action bgp as-path prepend repeat-n number | |
Tree | repeat-n | |
Range | 1 to 50 | |
Configurable | True | |
Platforms | Supported on all platforms |
remove boolean
Description | Clear the AS path to make it empty. | |
Context | routing-policy policy name string default-action bgp as-path remove boolean | |
Tree | remove | |
Configurable | True | |
Platforms | Supported on all platforms |
replace number
Description | Clear the existing AS path and replace it a new AS_SEQUENCE containing the listed AS numbers. | |
Context | routing-policy policy name string default-action bgp as-path replace number | |
Tree | replace | |
Range | 1 to 4294967295 | |
Configurable | True | |
Platforms | Supported on all platforms |
communities
Description | Modify BGP communities attached to routes | |
Context | routing-policy policy name string default-action bgp communities | |
Tree | communities | |
Configurable | True | |
Platforms | Supported on all platforms |
add reference
Description | Reference to a community-set name All of the non-regex community members in the referenced community-set are added to the COMMUNTIES and LARGE_COMMUNITIES attributes. | |
Context | routing-policy policy name string default-action bgp communities add reference | |
Tree | add | |
Reference | routing-policy community-set name string | |
Configurable | True | |
Platforms | Supported on all platforms |
remove reference
Description | Reference to a community-set name The communities in the route are compared to all of the community members in the referenced community-set, and all matching communities are removed from the COMMUNITIES and LARGE_COMMUNITIES attributes. | |
Context | routing-policy policy name string default-action bgp communities remove reference | |
Tree | remove | |
Reference | routing-policy community-set name string | |
Configurable | True | |
Platforms | Supported on all platforms |
replace reference
Description | Reference to a community-set name All of the existing communities are deleted and then all of the non-regex community members in the referenced community-set are encoded in new COMMUNTIES and LARGE_COMMUNITIES attributes. | |
Context | routing-policy policy name string default-action bgp communities replace reference | |
Tree | replace | |
Reference | routing-policy community-set name string | |
Configurable | True | |
Platforms | Supported on all platforms |
local-preference
Description | Enter the local-preference context | |
Context | routing-policy policy name string default-action bgp local-preference | |
Tree | local-preference | |
Configurable | True | |
Platforms | Supported on all platforms |
set number
Description | The new value of LOCAL_PREF to write into the matching BGP routes | |
Context | routing-policy policy name string default-action bgp local-preference set number | |
Tree | set | |
Configurable | True | |
Platforms | Supported on all platforms |
med
Description | Enter the med context | |
Context | routing-policy policy name string default-action bgp med | |
Tree | med | |
Configurable | True | |
Platforms | 7220 IXR-D5, 7220 IXR-D3L, 7250 IXR-6, 7220 IXR-H2, 7220 IXR-D2L, 7220 IXR-D1, 7220 IXR-D4, 7220 IXR-D2, 7220 IXR-H3, 7250 IXR-10, 7220 IXR-H4, 7250 IXR-6e, 7220 IXR-D3, 7250 IXR-10e |
set (number | keyword)
Description | The new value of the Multi-Exit Discriminator attribute value to write into the matching BGP routes. The route-table-cost option derives the MED from the route metric. | |
Context | routing-policy policy name string default-action bgp med set (number | keyword) | |
Tree | set | |
Options |
| |
Configurable | True | |
Platforms | 7220 IXR-D5, 7220 IXR-D3L, 7250 IXR-6, 7220 IXR-H2, 7220 IXR-D2L, 7220 IXR-D1, 7220 IXR-D4, 7220 IXR-D2, 7220 IXR-H3, 7250 IXR-10, 7220 IXR-H4, 7250 IXR-6e, 7220 IXR-D3, 7250 IXR-10e |
origin
Description | Enter the origin context | |
Context | routing-policy policy name string default-action bgp origin | |
Tree | origin | |
Configurable | True | |
Platforms | Supported on all platforms |
set keyword
Description | The new value of the ORIGIN attribute to write into the matching BGP routes | |
Context | routing-policy policy name string default-action bgp origin set keyword | |
Tree | set | |
Options |
| |
Configurable | True | |
Platforms | Supported on all platforms |
policy-result keyword
Description | Select the final disposition for the route. | |
Context | routing-policy policy name string default-action policy-result keyword | |
Tree | policy-result | |
Options |
| |
Configurable | True | |
Platforms | Supported on all platforms |
statement name string
name string
Description | Name given to the policy statement (rule). | |
Context | routing-policy policy name string statement name string | |
String Length | 1 to 255 | |
Configurable | True | |
Platforms | Supported on all platforms |
action
bgp
as-path
prepend
as-number (number | keyword)
Description | The AS number to prepend to the AS Path attributes If 'auto' is specified then the peer's AS number is used in the context of an import policy and the local AS number is used in the context of an export policy. | |
Context | routing-policy policy name string statement name string action bgp as-path prepend as-number (number | keyword) | |
Tree | as-number | |
Range | 1 to 4294967295 | |
Options |
| |
Configurable | True | |
Platforms | Supported on all platforms |
repeat-n number
remove boolean
replace number
communities
Description | Modify BGP communities attached to routes | |
Context | routing-policy policy name string statement name string action bgp communities | |
Tree | communities | |
Configurable | True | |
Platforms | Supported on all platforms |
add reference
Description | Reference to a community-set name All of the non-regex community members in the referenced community-set are added to the COMMUNTIES and LARGE_COMMUNITIES attributes. | |
Context | routing-policy policy name string statement name string action bgp communities add reference | |
Tree | add | |
Reference | routing-policy community-set name string | |
Configurable | True | |
Platforms | Supported on all platforms |
remove reference
Description | Reference to a community-set name The communities in the route are compared to all of the community members in the referenced community-set, and all matching communities are removed from the COMMUNITIES and LARGE_COMMUNITIES attributes. | |
Context | routing-policy policy name string statement name string action bgp communities remove reference | |
Tree | remove | |
Reference | routing-policy community-set name string | |
Configurable | True | |
Platforms | Supported on all platforms |
replace reference
Description | Reference to a community-set name All of the existing communities are deleted and then all of the non-regex community members in the referenced community-set are encoded in new COMMUNTIES and LARGE_COMMUNITIES attributes. | |
Context | routing-policy policy name string statement name string action bgp communities replace reference | |
Tree | replace | |
Reference | routing-policy community-set name string | |
Configurable | True | |
Platforms | Supported on all platforms |
local-preference
Description | Enter the local-preference context | |
Context | routing-policy policy name string statement name string action bgp local-preference | |
Tree | local-preference | |
Configurable | True | |
Platforms | Supported on all platforms |
set number
Description | The new value of LOCAL_PREF to write into the matching BGP routes | |
Context | routing-policy policy name string statement name string action bgp local-preference set number | |
Tree | set | |
Configurable | True | |
Platforms | Supported on all platforms |
med
Description | Enter the med context | |
Context | routing-policy policy name string statement name string action bgp med | |
Tree | med | |
Configurable | True | |
Platforms | 7220 IXR-D5, 7220 IXR-D3L, 7250 IXR-6, 7220 IXR-H2, 7220 IXR-D2L, 7220 IXR-D1, 7220 IXR-D4, 7220 IXR-D2, 7220 IXR-H3, 7250 IXR-10, 7220 IXR-H4, 7250 IXR-6e, 7220 IXR-D3, 7250 IXR-10e |
set (number | keyword)
Description | The new value of the Multi-Exit Discriminator attribute value to write into the matching BGP routes. The route-table-cost option derives the MED from the route metric. | |
Context | routing-policy policy name string statement name string action bgp med set (number | keyword) | |
Tree | set | |
Options |
| |
Configurable | True | |
Platforms | 7220 IXR-D5, 7220 IXR-D3L, 7250 IXR-6, 7220 IXR-H2, 7220 IXR-D2L, 7220 IXR-D1, 7220 IXR-D4, 7220 IXR-D2, 7220 IXR-H3, 7250 IXR-10, 7220 IXR-H4, 7250 IXR-6e, 7220 IXR-D3, 7250 IXR-10e |
origin
set keyword
policy-result keyword
Description | Select the final disposition for the route. | |
Context | routing-policy policy name string statement name string action policy-result keyword | |
Tree | policy-result | |
Options |
| |
Configurable | True | |
Platforms | Supported on all platforms |
match
bgp
as-path-length
Description | A BGP route matches this condition if the number of (unique) AS numbers in its AS_PATH matches this value or the range implied by the value+operator. | |
Context | routing-policy policy name string statement name string match bgp as-path-length | |
Tree | as-path-length | |
Configurable | True | |
Platforms | Supported on all platforms |
operator keyword
Description | The comparison operator that applies to the value | |
Context | routing-policy policy name string statement name string match bgp as-path-length operator keyword | |
Tree | operator | |
Options |
| |
Configurable | True | |
Platforms | Supported on all platforms |
unique boolean
Description | Count a repeated sequence of the same AS number as just 1 element | |
Context | routing-policy policy name string statement name string match bgp as-path-length unique boolean | |
Tree | unique | |
Configurable | True | |
Platforms | Supported on all platforms |
value number
Description | The number of (unique) AS numbers in the AS path | |
Context | routing-policy policy name string statement name string match bgp as-path-length value number | |
Tree | value | |
Range | 0 to 255 | |
Configurable | True | |
Platforms | Supported on all platforms |
as-path-set reference
Description | Reference to an as-path-set name A route meets this condition if it matches the regular expression | |
Context | routing-policy policy name string statement name string match bgp as-path-set reference | |
Tree | as-path-set | |
Reference | routing-policy as-path-set name string | |
Configurable | True | |
Platforms | Supported on all platforms |
community-set reference
Description | Reference to a community-set name A route meets this condition if has any community value matching a community member in the referenced community-set | |
Context | routing-policy policy name string statement name string match bgp community-set reference | |
Tree | community-set | |
Reference | routing-policy community-set name string | |
Configurable | True | |
Platforms | Supported on all platforms |
evpn
route-type number
Description | An EVPN route meets this condition if the route-type field in the NLRI is one of the values provided in this list. | |
Context | routing-policy policy name string statement name string match bgp evpn route-type number | |
Tree | route-type | |
Range | 1 to 5 | |
Configurable | True | |
Platforms | Supported on all platforms | |
Max. Elements | 1 |
family identityref
Description | The name of an address family A route meets this condition if the prefix belongs to one of the indicated address families. | |
Context | routing-policy policy name string statement name string match family identityref | |
Tree | family | |
Options |
| |
Configurable | True | |
Platforms | Supported on all platforms |
isis
level number
route-type keyword
Description | An IS-IS IPv4 prefix is external if it is signalled in TLV 130 or TLV135 with RFC 7794 X flag=1. An IS-IS IPv6 prefix is external if the TLV 236/TLV 237 external bit = 1. | |
Context | routing-policy policy name string statement name string match isis route-type keyword | |
Tree | route-type | |
Options |
| |
Configurable | True | |
Platforms | Supported on all platforms |
ospf
area-id
instance-id number
Description | OSPFv3 instance identifier | |
Context | routing-policy policy name string statement name string match ospf instance-id number | |
Tree | instance-id | |
Range | 0 to 255 | |
Configurable | True | |
Platforms | Supported on all platforms |
route-type identityref
Description | The OSPF route type. | |
Context | routing-policy policy name string statement name string match ospf route-type identityref | |
Tree | route-type | |
Options |
| |
Configurable | True | |
Platforms | Supported on all platforms |
prefix-set reference
Description | Reference to a prefix set name | |
Context | routing-policy policy name string statement name string match prefix-set reference | |
Tree | prefix-set | |
Reference | routing-policy prefix-set name string | |
Configurable | True | |
Platforms | Supported on all platforms |
protocol identityref
Description | The route type to match | |
Context | routing-policy policy name string statement name string match protocol identityref | |
Tree | protocol | |
Options |
| |
Configurable | True | |
Platforms | Supported on all platforms |
prefix-set name string
Description | List of defined prefix sets | |
Context | routing-policy prefix-set name string | |
Tree | prefix-set | |
Configurable | True | |
Platforms | Supported on all platforms |
name string
Description | A name used to identify the prefix set | |
Context | routing-policy prefix-set name string | |
String Length | 1 to 255 | |
Configurable | True | |
Platforms | Supported on all platforms |
prefix ip-prefix (ipv4-prefix | ipv6-prefix) mask-length-range string
Description | List of prefixes in the prefix set | |
Context | routing-policy prefix-set name string prefix ip-prefix (ipv4-prefix | ipv6-prefix) mask-length-range string | |
Tree | prefix | |
Configurable | True | |
Platforms | Supported on all platforms |
ip-prefix (ipv4-prefix | ipv6-prefix)
Description | The IPv4 or IPv6 prefix in CIDR notation | |
Context | routing-policy prefix-set name string prefix ip-prefix (ipv4-prefix | ipv6-prefix) mask-length-range string | |
Configurable | True | |
Platforms | Supported on all platforms |
mask-length-range string
Description | The range of prefix lengths to match Example: 10.3.192.0/21 through 10.3.192.0/24 would be expressed as prefix: 10.3.192.0/21, mask-length-range: 21..24. Example: 10.3.192.0/21 would be expressed as prefix: 10.3.192.0/21, mask-length-range: exact | |
Context | routing-policy prefix-set name string prefix ip-prefix (ipv4-prefix | ipv6-prefix) mask-length-range string | |
Configurable | True | |
Platforms | Supported on all platforms |
tag-set name string
Description | List of administrative tag sets | |
Context | routing-policy tag-set name string | |
Tree | tag-set | |
Configurable | True | |
Platforms | Supported on all platforms | |
Max. Elements | 255 |
name string
Description | A name used to identify the tag set | |
Context | routing-policy tag-set name string | |
String Length | 1 to 255 | |
Configurable | True | |
Platforms | Supported on all platforms |
tag-set-index number
Description | System-wide persistent unique identifier assigned to the tag-set | |
Context | routing-policy tag-set name string tag-set-index number | |
Tree | tag-set-index | |
Configurable | False | |
Platforms | Supported on all platforms |