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 sequence-id number 
      +  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 

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 (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
Contextrouting-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)
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
Platforms7250 IXR-6, 7250 IXR-6e, 7220 IXR-D3L, 7220 IXR-D2, 7250 IXR-10, 7220 IXR-D1, 7250 IXR-10e, 7220 IXR-D3, 7220 IXR-H2, 7220 IXR-H3, 7220 IXR-D5, 7220 IXR-D2L
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
Platforms7250 IXR-6, 7250 IXR-6e, 7220 IXR-D3L, 7220 IXR-D2, 7250 IXR-10, 7220 IXR-D1, 7250 IXR-10e, 7220 IXR-D3, 7220 IXR-H2, 7220 IXR-H3, 7220 IXR-D5, 7220 IXR-D2L

statement sequence-id number

Description Policy statements group conditions and actions within a policy definition. They are evaluated in the order of their sequence id.
Contextrouting-policy policy name string statement sequence-id number
Treestatement
ConfigurableTrue
PlatformsSupported on all platforms
sequence-id number
Description

Number indicating when this policy statement should be evaluated relative to other policy statements

Lower numbered statements are evaluated before higher numbered statements.

Contextrouting-policy policy name string statement sequence-id number
Range1 to 4294967295
ConfigurableTrue
PlatformsSupported on all platforms
action
Description Actions for routes that match the policy statement
Contextrouting-policy policy name string statement sequence-id number action
Treeaction
ConfigurableTrue
PlatformsSupported on all platforms
bgp
Description Enter the bgp context
Context routing-policy policy name string statement sequence-id number action bgp
Treebgp
ConfigurableTrue
PlatformsSupported on all platforms
as-path
Description Modify AS Path attribute of routes
Context routing-policy policy name string statement sequence-id number 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 sequence-id number 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 sequence-id number 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 sequence-id number action bgp communities
Treecommunities
ConfigurableTrue
PlatformsSupported on all platforms
med
Description Enter the med context
Context routing-policy policy name string statement sequence-id number action bgp med
Treemed
ConfigurableTrue
Platforms7250 IXR-6, 7250 IXR-6e, 7220 IXR-D3L, 7220 IXR-D2, 7250 IXR-10, 7220 IXR-D1, 7250 IXR-10e, 7220 IXR-D3, 7220 IXR-H2, 7220 IXR-H3, 7220 IXR-D5, 7220 IXR-D2L
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 sequence-id number action bgp med set (number | keyword)
Treeset
Options
  • route-table-cost

ConfigurableTrue
Platforms7250 IXR-6, 7250 IXR-6e, 7220 IXR-D3L, 7220 IXR-D2, 7250 IXR-10, 7220 IXR-D1, 7250 IXR-10e, 7220 IXR-D3, 7220 IXR-H2, 7220 IXR-H3, 7220 IXR-D5, 7220 IXR-D2L
match
Description Match conditions of the policy statement
Contextrouting-policy policy name string statement sequence-id number match
Treematch
ConfigurableTrue
PlatformsSupported on all platforms
bgp
Description Configuration for BGP-specific policy match criteria
Contextrouting-policy policy name string statement sequence-id number 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 sequence-id number 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 sequence-id number 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 sequence-id number 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)

  • evpn

    EVPN routes (AFI = 25, SAFI = 70)

ConfigurableTrue
PlatformsSupported on all platforms
isis
Description Configuration for ISIS-specific policy match criteria
Contextrouting-policy policy name string statement sequence-id number 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 sequence-id number 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 sequence-id number match ospf
Treeospf
ConfigurableTrue
PlatformsSupported on all platforms
protocol identityref
Description The route type to match
Context routing-policy policy name string statement sequence-id number 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-evpn

    BGP Ethernet VPN (EVPN)

  • 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