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
      +  accept
         +  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
            +  origin
               +  set keyword
      +  reject
   +  statement sequence-id number
      +  action
         +  accept
            +  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
               +  origin
                  +  set keyword
         +  reject
      +  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

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

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

name string

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

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 accept bgp as-path prepend as-number (number | keyword)
Treeas-number
Range1 to 4294967295
Options
  • auto

ConfigurableTrue

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

family identityref

Description

The name of an address family

A route meets this condition if the prefix belongs to the indicated address family.

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

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

name string

Description A name used to identify the prefix set
Contextrouting-policy prefix-set name string
String Length1 to 255
ConfigurableTrue

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