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 | |
| Context | routing-policy | |
| Tree | routing-policy | |
| Configurable | True |
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 |
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 |
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 |
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 |
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 |
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 | |
| 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 |
name string
| Description | A name used to identify the policy | |
| Context | routing-policy policy name string | |
| String Length | 1 to 255 | |
| Configurable | True |
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 |
accept
| Description | Accept action | |
| Context | routing-policy policy name string default-action accept | |
| Tree | accept | |
| Configurable | True |
bgp
| Description | Enable the bgp context | |
| Context | routing-policy policy name string default-action accept bgp | |
| Tree | bgp | |
| Configurable | True |
as-path
| Description | Modify AS Path attribute of routes | |
| Context | routing-policy policy name string default-action accept bgp as-path | |
| Tree | as-path | |
| Configurable | True |
prepend
| Description | Prepend a BGP AS number to the AS Path attribute of routes | |
| Context | routing-policy policy name string default-action accept bgp as-path prepend | |
| Tree | prepend | |
| Configurable | True |
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 accept bgp as-path prepend as-number (number | keyword) | |
| Tree | as-number | |
| Range | 1 to 4294967295 | |
| Options |
| |
| Configurable | True |
repeat-n number
| Description | The number of repetitions of the prepended AS number | |
| Context | routing-policy policy name string default-action accept bgp as-path prepend repeat-n number | |
| Tree | repeat-n | |
| Range | 1 to 50 | |
| Default | 1 | |
| Configurable | True |
remove boolean
| Description | Clear the AS path to make it empty. | |
| Context | routing-policy policy name string default-action accept bgp as-path remove boolean | |
| Tree | remove | |
| Configurable | True |
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 accept bgp as-path replace number | |
| Tree | replace | |
| Range | 1 to 4294967295 | |
| Configurable | True |
communities
| Description | Modify BGP communities attached to routes | |
| Context | routing-policy policy name string default-action accept bgp communities | |
| Tree | communities | |
| Configurable | True |
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 accept bgp communities add reference | |
| Tree | add | |
| Reference | routing-policy community-set name string | |
| Configurable | True |
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 accept bgp communities remove reference | |
| Tree | remove | |
| Reference | routing-policy community-set name string | |
| Configurable | True |
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 accept bgp communities replace reference | |
| Tree | replace | |
| Reference | routing-policy community-set name string | |
| Configurable | True |
local-preference
| Description | Enter the local-preference context | |
| Context | routing-policy policy name string default-action accept bgp local-preference | |
| Tree | local-preference | |
| Configurable | True |
set number
| Description | The new value of LOCAL_PREF to write into the matching BGP routes | |
| Context | routing-policy policy name string default-action accept bgp local-preference set number | |
| Tree | set | |
| Configurable | True |
origin
| Description | Enter the origin context | |
| Context | routing-policy policy name string default-action accept bgp origin | |
| Tree | origin | |
| Configurable | True |
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 accept bgp origin set keyword | |
| Tree | set | |
| Options |
| |
| Configurable | True |
reject
| Description | Reject action | |
| Context | routing-policy policy name string default-action reject | |
| Tree | reject | |
| Configurable | True |
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. | |
| Context | routing-policy policy name string statement sequence-id number | |
| Tree | statement | |
| Configurable | True |
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. | |
| Context | routing-policy policy name string statement sequence-id number | |
| Range | 1 to 4294967295 | |
| Configurable | True |
action
| Description | Policy actions | |
| Context | routing-policy policy name string statement sequence-id number action | |
| Tree | action | |
| Configurable | True |
accept
| Description | Accept action | |
| Context | routing-policy policy name string statement sequence-id number action accept | |
| Tree | accept | |
| Configurable | True |
bgp
| Description | Enable the bgp context | |
| Context | routing-policy policy name string statement sequence-id number action accept bgp | |
| Tree | bgp | |
| Configurable | True |
as-path
| Description | Modify AS Path attribute of routes | |
| Context | routing-policy policy name string statement sequence-id number action accept bgp as-path | |
| Tree | as-path | |
| Configurable | True |
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 sequence-id number action accept bgp as-path prepend as-number (number | keyword) | |
| Tree | as-number | |
| Range | 1 to 4294967295 | |
| Options |
| |
| Configurable | True |
repeat-n number
remove boolean
replace number
communities
| Description | Modify BGP communities attached to routes | |
| Context | routing-policy policy name string statement sequence-id number action accept bgp communities | |
| Tree | communities | |
| Configurable | True |
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 sequence-id number action accept bgp communities add reference | |
| Tree | add | |
| Reference | routing-policy community-set name string | |
| Configurable | True |
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 sequence-id number action accept bgp communities remove reference | |
| Tree | remove | |
| Reference | routing-policy community-set name string | |
| Configurable | True |
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 sequence-id number action accept bgp communities replace reference | |
| Tree | replace | |
| Reference | routing-policy community-set name string | |
| Configurable | True |
local-preference
| Description | Enter the local-preference context | |
| Context | routing-policy policy name string statement sequence-id number action accept bgp local-preference | |
| Tree | local-preference | |
| Configurable | True |
set number
| Description | The new value of LOCAL_PREF to write into the matching BGP routes | |
| Context | routing-policy policy name string statement sequence-id number action accept bgp local-preference set number | |
| Tree | set | |
| Configurable | True |
origin
| Description | Enter the origin context | |
| Context | routing-policy policy name string statement sequence-id number action accept bgp origin | |
| Tree | origin | |
| Configurable | True |
set keyword
reject
| Description | Reject action | |
| Context | routing-policy policy name string statement sequence-id number action reject | |
| Tree | reject | |
| Configurable | True |
match
| Description | Match conditions of the policy statement | |
| Context | routing-policy policy name string statement sequence-id number match | |
| Tree | match | |
| Configurable | True |
bgp
| Description | Top-level container | |
| Context | routing-policy policy name string statement sequence-id number match bgp | |
| Tree | bgp | |
| Configurable | True |
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 sequence-id number match bgp as-path-length | |
| Tree | as-path-length | |
| Configurable | True |
operator keyword
| Description | The comparison operator that applies to the value | |
| Context | routing-policy policy name string statement sequence-id number match bgp as-path-length operator keyword | |
| Tree | operator | |
| Default | eq | |
| Options |
| |
| Configurable | True |
unique boolean
| Description | Count a repeated sequence of the same AS number as just 1 element | |
| Context | routing-policy policy name string statement sequence-id number match bgp as-path-length unique boolean | |
| Tree | unique | |
| Default | false | |
| Configurable | True |
value number
| Description | The number of (unique) AS numbers in the AS path | |
| Context | routing-policy policy name string statement sequence-id number match bgp as-path-length value number | |
| Tree | value | |
| Range | 0 to 255 | |
| Configurable | True |
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 sequence-id number match bgp as-path-set reference | |
| Tree | as-path-set | |
| Reference | routing-policy as-path-set name string | |
| Configurable | True |
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 sequence-id number match bgp community-set reference | |
| Tree | community-set | |
| Reference | routing-policy community-set name string | |
| Configurable | True |
evpn
| Description | Container for match conditions that are specific to BGP EVPN routes. | |
| Context | routing-policy policy name string statement sequence-id number match bgp evpn | |
| Tree | evpn | |
| Configurable | True |
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 sequence-id number match bgp evpn route-type number | |
| Tree | route-type | |
| Range | 1 to 5 | |
| Configurable | True | |
| Max. Elements | 1 |
family identityref
| Description | The name of an address family A route meets this condition if the prefix belongs to the indicated address family. | |
| Context | routing-policy policy name string statement sequence-id number match family identityref | |
| Tree | family | |
| Options |
| |
| Configurable | True |
isis
| Description | Configuration for ISIS-specific policy match criteria | |
| Context | routing-policy policy name string statement sequence-id number match isis | |
| Tree | isis | |
| Configurable | True |
level number
| Description | IS-IS route level | |
| Context | routing-policy policy name string statement sequence-id number match isis level number | |
| Tree | level | |
| Range | 1 to 2 | |
| Configurable | True |
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 sequence-id number match isis route-type keyword | |
| Tree | route-type | |
| Options |
| |
| Configurable | True |
ospf
| Description | Configuration for OSPF-specific policy match criteria | |
| Context | routing-policy policy name string statement sequence-id number match ospf | |
| Tree | ospf | |
| Configurable | True |
area-id
| Description | The area identifier as a dotted-quad. | |
| Context | routing-policy policy name string statement sequence-id number match ospf area-id | |
| Tree | area-id | |
| Configurable | True |
instance-id number
| Description | OSPFv3 instance identifier | |
| Context | routing-policy policy name string statement sequence-id number match ospf instance-id number | |
| Tree | instance-id | |
| Range | 0 to 255 | |
| Configurable | True |
route-type identityref
| Description | The OSPF route type. | |
| Context | routing-policy policy name string statement sequence-id number match ospf route-type identityref | |
| Tree | route-type | |
| Options |
| |
| Configurable | True |
prefix-set reference
| Description | Reference to a prefix set name | |
| Context | routing-policy policy name string statement sequence-id number match prefix-set reference | |
| Tree | prefix-set | |
| Reference | routing-policy prefix-set name string | |
| Configurable | True |
protocol identityref
| Description | The route type to match | |
| Context | routing-policy policy name string statement sequence-id number match protocol identityref | |
| Tree | protocol | |
| Options |
| |
| Configurable | True |
prefix-set name string
| Description | List of defined prefix sets | |
| Context | routing-policy prefix-set name string | |
| Tree | prefix-set | |
| Configurable | True |
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 |
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 |
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 |
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 |