routing-policy

routing-policy
+  as-path-set name string 
   +  expression string
+  community-set name string 
   +  member (identityref | bgp-std-community-type | bgp-large-community-type | string | string | string | string | string | string | string | string | string | string | bgp-large-community-regexp-type | bgp-std-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
      +  internal-tags
         +  tag-set reference
      +  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
         +  internal-tags
            +  tag-set reference
         +  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
         +  internal-tags
            +  tag-set reference
         +  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
Contextrouting-policy
Treerouting-policy
ConfigurableTrue
PlatformsSupported on all platforms

as-path-set name string

Description AS Path regular expressions for use in policy entries
Contextrouting-policy as-path-set name string
Treeas-path-set
ConfigurableTrue
PlatformsSupported on all platforms

name string

Description A name used to identify the AS path regular expression
Contextrouting-policy as-path-set name string
String Length1 to 255
ConfigurableTrue
PlatformsSupported on all platforms

expression string

Description A regular expression where each AS number is an elemental term
Contextrouting-policy as-path-set name string expression string
Treeexpression
String Length1 to 65535
ConfigurableTrue
PlatformsSupported on all platforms

community-set name string

Description List of BGP community sets containing standard and large BGP communities
Contextrouting-policy community-set name string
Treecommunity-set
ConfigurableTrue
PlatformsSupported on all platforms

name string

Description A name used to identify the community set
Contextrouting-policy community-set name string
String Length1 to 255
ConfigurableTrue
PlatformsSupported on all platforms

member (identityref | bgp-std-community-type | bgp-large-community-type | string | string | string | string | string | string | string | string | string | string | bgp-large-community-regexp-type | bgp-std-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
Contextrouting-policy community-set name string member (identityref | bgp-std-community-type | bgp-large-community-type | string | string | string | string | string | string | string | string | string | string | bgp-large-community-regexp-type | bgp-std-community-regexp-type)
Treemember
Options
  • no-export

    Do not export NLRI received carrying this community outside the bounds of this autonomous system, or this confederation if the local autonomous system is a confederation member AS. This community has a value of 0xFFFFFF01.

  • no-advertise

    All NLRI received carrying this community must not be advertised to other BGP peers. This community has a value of 0xFFFFFF02.

  • no-export-subconfed

    All NLRI received carrying this community must not be advertised to external BGP peers - including over confederation sub-AS boundaries. This community has a value of 0xFFFFFF03.

ConfigurableTrue
PlatformsSupported on all platforms
Min. Elements1

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.
Contextrouting-policy policy name string
Treepolicy
ConfigurableTrue
PlatformsSupported on all platforms

name string

Description A name used to identify the policy
Context routing-policy policy name string
String Length1 to 255
ConfigurableTrue
PlatformsSupported on all platforms

default-action

Description Actions for routes that do not match any policy entry
Contextrouting-policy policy name string default-action
Treedefault-action
ConfigurableTrue
PlatformsSupported on all platforms
bgp
Description Enter the bgp context
Context routing-policy policy name string default-action bgp
Treebgp
ConfigurableTrue
PlatformsSupported on all platforms
as-path
Description Modify AS Path attribute of routes
Context routing-policy policy name string default-action bgp as-path
Treeas-path
ConfigurableTrue
PlatformsSupported on all platforms
prepend
Description Prepend a BGP AS number to the AS Path attribute of routes
Contextrouting-policy policy name string default-action bgp as-path prepend
Treeprepend
ConfigurableTrue
PlatformsSupported 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.

Contextrouting-policy policy name string default-action bgp as-path prepend as-number (number | keyword)
Treeas-number
Range1 to 4294967295
Options
  • auto

ConfigurableTrue
PlatformsSupported on all platforms
communities
Description Modify BGP communities attached to routes
Contextrouting-policy policy name string default-action bgp communities
Treecommunities
ConfigurableTrue
PlatformsSupported on all platforms
med
Description Enter the med context
Context routing-policy policy name string default-action bgp med
Treemed
ConfigurableTrue
Platforms7220 IXR-D1, 7220 IXR-D2, 7220 IXR-D2L, 7220 IXR-D3, 7220 IXR-D3L, 7220 IXR-D4, 7220 IXR-D5, 7220 IXR-H2, 7220 IXR-H3, 7220 IXR-H4, 7250 IXR-10, 7250 IXR-10e, 7250 IXR-6, 7250 IXR-6e
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.
Contextrouting-policy policy name string default-action bgp med set (number | keyword)
Treeset
Options
  • route-table-cost

ConfigurableTrue
Platforms7220 IXR-D1, 7220 IXR-D2, 7220 IXR-D2L, 7220 IXR-D3, 7220 IXR-D3L, 7220 IXR-D4, 7220 IXR-D5, 7220 IXR-H2, 7220 IXR-H3, 7220 IXR-H4, 7250 IXR-10, 7250 IXR-10e, 7250 IXR-6, 7250 IXR-6e
internal-tags
Description Configuration of internal tags
Context routing-policy policy name string default-action internal-tags
Treeinternal-tags
ConfigurableTrue
Platforms7220 IXR-D1, 7220 IXR-D2, 7220 IXR-D2L, 7220 IXR-D3, 7220 IXR-D3L, 7220 IXR-D4, 7220 IXR-D5, 7220 IXR-H2, 7220 IXR-H3, 7220 IXR-H4, 7250 IXR-10, 7250 IXR-10e, 7250 IXR-6, 7250 IXR-6e
tag-set reference
Description Reference to a tag-set defined under routing-policy
Contextrouting-policy policy name string default-action internal-tags tag-set reference
Treetag-set
Referencerouting-policy tag-set name string
ConfigurableTrue
Platforms7220 IXR-D1, 7220 IXR-D2, 7220 IXR-D2L, 7220 IXR-D3, 7220 IXR-D3L, 7220 IXR-D4, 7220 IXR-D5, 7220 IXR-H2, 7220 IXR-H3, 7220 IXR-H4, 7250 IXR-10, 7250 IXR-10e, 7250 IXR-6, 7250 IXR-6e
Max. Elements1

statement name string

Description Policy statements group conditions and actions within a policy definition. They are evaluated in configuration order.
Contextrouting-policy policy name string statement name string
Treestatement
ConfigurableTrue
PlatformsSupported on all platforms
name string
Description Name given to the policy statement (rule).
Contextrouting-policy policy name string statement name string
String Length1 to 255
ConfigurableTrue
PlatformsSupported on all platforms
action
Description Actions for routes that match the policy statement
Contextrouting-policy policy name string statement name string action
Treeaction
ConfigurableTrue
PlatformsSupported on all platforms
bgp
Description Enter the bgp context
Context routing-policy policy name string statement name string action bgp
Treebgp
ConfigurableTrue
PlatformsSupported on all platforms
as-path
Description Modify AS Path attribute of routes
Context routing-policy policy name string statement name string action bgp as-path
Treeas-path
ConfigurableTrue
PlatformsSupported on all platforms
prepend
Description Prepend a BGP AS number to the AS Path attribute of routes
Contextrouting-policy policy name string statement name string action bgp as-path prepend
Treeprepend
ConfigurableTrue
PlatformsSupported 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.

Contextrouting-policy policy name string statement name string action bgp as-path prepend as-number (number | keyword)
Treeas-number
Range1 to 4294967295
Options
  • auto

ConfigurableTrue
PlatformsSupported on all platforms
communities
Description Modify BGP communities attached to routes
Contextrouting-policy policy name string statement name string action bgp communities
Treecommunities
ConfigurableTrue
PlatformsSupported on all platforms
med
Description Enter the med context
Context routing-policy policy name string statement name string action bgp med
Treemed
ConfigurableTrue
Platforms7220 IXR-D1, 7220 IXR-D2, 7220 IXR-D2L, 7220 IXR-D3, 7220 IXR-D3L, 7220 IXR-D4, 7220 IXR-D5, 7220 IXR-H2, 7220 IXR-H3, 7220 IXR-H4, 7250 IXR-10, 7250 IXR-10e, 7250 IXR-6, 7250 IXR-6e
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.
Contextrouting-policy policy name string statement name string action bgp med set (number | keyword)
Treeset
Options
  • route-table-cost

ConfigurableTrue
Platforms7220 IXR-D1, 7220 IXR-D2, 7220 IXR-D2L, 7220 IXR-D3, 7220 IXR-D3L, 7220 IXR-D4, 7220 IXR-D5, 7220 IXR-H2, 7220 IXR-H3, 7220 IXR-H4, 7250 IXR-10, 7250 IXR-10e, 7250 IXR-6, 7250 IXR-6e
internal-tags
Description Configuration of internal tags
Context routing-policy policy name string statement name string action internal-tags
Treeinternal-tags
ConfigurableTrue
Platforms7220 IXR-D1, 7220 IXR-D2, 7220 IXR-D2L, 7220 IXR-D3, 7220 IXR-D3L, 7220 IXR-D4, 7220 IXR-D5, 7220 IXR-H2, 7220 IXR-H3, 7220 IXR-H4, 7250 IXR-10, 7250 IXR-10e, 7250 IXR-6, 7250 IXR-6e
match
Description Match conditions of the policy statement
Contextrouting-policy policy name string statement name string match
Treematch
ConfigurableTrue
PlatformsSupported on all platforms
bgp
Description Configuration for BGP-specific policy match criteria
Contextrouting-policy policy name string statement name string match bgp
Treebgp
ConfigurableTrue
PlatformsSupported on all platforms
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.
Contextrouting-policy policy name string statement name string match bgp as-path-length
Treeas-path-length
ConfigurableTrue
PlatformsSupported on all platforms
evpn
Description Container for match conditions that are specific to BGP EVPN routes.
Contextrouting-policy policy name string statement name string match bgp evpn
Treeevpn
ConfigurableTrue
PlatformsSupported on all platforms
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.

Contextrouting-policy policy name string statement name string match family identityref
Treefamily
Options
  • ipv4-unicast

    Unlabeled IPv4 unicast routes (AFI = 1, SAFI = 1)

  • ipv6-unicast

    Unlabeled IPv6 unicast routes (AFI = 2, SAFI = 1)

  • l3vpn-ipv4-unicast

    VPN-IPv4 unicast address family (AFI = 1, SAFI = 128)

  • l3vpn-ipv6-unicast

    VPN-IPv6 unicast address family (AFI = 2, SAFI = 128)

  • ipv4-labeled-unicast

    Labeled IPv4 unicast routes (AFI 1, SAFI 4)

  • ipv6-labeled-unicast

    Labeled IPv6 unicast routes (AFI 2, SAFI 4)

  • evpn

    EVPN routes (AFI = 25, SAFI = 70)

ConfigurableTrue
PlatformsSupported on all platforms
internal-tags
Description Configuration and state of internal tags
Contextrouting-policy policy name string statement name string match internal-tags
Treeinternal-tags
ConfigurableTrue
Platforms7220 IXR-D1, 7220 IXR-D2, 7220 IXR-D2L, 7220 IXR-D3, 7220 IXR-D3L, 7220 IXR-D4, 7220 IXR-D5, 7220 IXR-H2, 7220 IXR-H3, 7220 IXR-H4, 7250 IXR-10, 7250 IXR-10e, 7250 IXR-6, 7250 IXR-6e
isis
Description Configuration for ISIS-specific policy match criteria
Contextrouting-policy policy name string statement name string match isis
Treeisis
ConfigurableTrue
PlatformsSupported on all platforms
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.
Contextrouting-policy policy name string statement name string match isis route-type keyword
Treeroute-type
Options
  • internal

  • external

Configurable True
PlatformsSupported on all platforms
ospf
Description Configuration for OSPF-specific policy match criteria
Contextrouting-policy policy name string statement name string match ospf
Treeospf
ConfigurableTrue
PlatformsSupported on all platforms
protocol identityref
Description The route type to match
Context routing-policy policy name string statement name string match protocol identityref
Treeprotocol
Options
  • aggregate

    Locally configured aggregate route

  • arp-nd

    IP route added by ARP ND.

  • bgp

    Border Gateway Protocol version 4

  • bgp-label

    Border Gateway Protocol labeled routes

  • bgp-evpn

    BGP Ethernet VPN (EVPN)

  • bgp-vpn

    Border Gateway Protocol VPN routes

  • dhcp

    IP (default) route added by DHCP.

  • gribi

    A gRIBI route

  • host

    A host route

  • isis

    IS-IS

  • local

    A directly connected route

  • linux

    IP route added by the linux kernel.

  • ndk1

    Route added by an agent application using the NDK

  • ndk2

    Route added by an agent application using the NDK

  • ospfv2

    OSPFv2

  • ospfv3

    OSPFv3

  • static

    Locally configured static route

ConfigurableTrue
PlatformsSupported on all platforms

prefix-set name string

Description List of defined prefix sets
Context routing-policy prefix-set name string
Treeprefix-set
ConfigurableTrue
PlatformsSupported on all platforms

name string

Description A name used to identify the prefix set
Contextrouting-policy prefix-set name string
String Length1 to 255
ConfigurableTrue
PlatformsSupported 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
Treeprefix
ConfigurableTrue
PlatformsSupported 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

Contextrouting-policy prefix-set name string prefix ip-prefix (ipv4-prefix | ipv6-prefix) mask-length-range string
ConfigurableTrue
PlatformsSupported on all platforms

tag-set name string

Description List of administrative tag sets
Context routing-policy tag-set name string
Treetag-set
ConfigurableTrue
Platforms7220 IXR-D1, 7220 IXR-D2, 7220 IXR-D2L, 7220 IXR-D3, 7220 IXR-D3L, 7220 IXR-D4, 7220 IXR-D5, 7220 IXR-H2, 7220 IXR-H3, 7220 IXR-H4, 7250 IXR-10, 7250 IXR-10e, 7250 IXR-6, 7250 IXR-6e
Max. Elements255

name string

Description A name used to identify the tag set
Context routing-policy tag-set name string
String Length1 to 255
ConfigurableTrue
Platforms7220 IXR-D1, 7220 IXR-D2, 7220 IXR-D2L, 7220 IXR-D3, 7220 IXR-D3L, 7220 IXR-D4, 7220 IXR-D5, 7220 IXR-H2, 7220 IXR-H3, 7220 IXR-H4, 7250 IXR-10, 7250 IXR-10e, 7250 IXR-6, 7250 IXR-6e

tag-set-index number

Description System-wide persistent unique identifier assigned to the tag-set
Contextrouting-policy tag-set name string tag-set-index number
Treetag-set-index
ConfigurableFalse
Platforms7220 IXR-D1, 7220 IXR-D2, 7220 IXR-D2L, 7220 IXR-D3, 7220 IXR-D3L, 7220 IXR-D4, 7220 IXR-D5, 7220 IXR-H2, 7220 IXR-H3, 7220 IXR-H4, 7250 IXR-10, 7250 IXR-10e, 7250 IXR-6, 7250 IXR-6e