Skip to main content

Route Policy Definition

Configure route policies.

Diagram

Classes

definitions (sdwan.localized_policies)

NameTypeConstraintMandatoryDefault Value
route_policiesList[route_policies]No

route_policies (sdwan.localized_policies.definitions)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[A-Za-z0-9-_]{1,128}$Yes
descriptionStringYes
default_actionChoiceaccept, rejectYes
sequencesList[sequences]No

sequences (sdwan.localized_policies.definitions.route_policies)

NameTypeConstraintMandatoryDefault Value
idIntegermin: 1, max: 65534Yes
nameStringNo
ip_typeChoiceipv4, ipv6, bothYes
base_actionChoiceaccept, rejectYes
match_criteriasClass[match_criterias]No
actionsClass[actions]No

match_criterias (sdwan.localized_policies.definitions.route_policies.sequences)

NameTypeConstraintMandatoryDefault Value
as_path_listStringRegex: ^[A-Za-z0-9-_]{1,128}$No
bgp_local_preferenceIntegermin: 0, max: 4294967295No
expanded_community_listStringRegex: ^[A-Za-z0-9-_]{1,128}$No
extended_community_listStringRegex: ^[A-Za-z0-9-_]{1,128}$No
metricIntegermin: 0, max: 4294967295No
next_hop_prefix_listStringRegex: ^[A-Za-z0-9-_]{1,128}$No
omp_tagIntegermin: 0, max: 4294967295No
originChoiceegp, igp, incompleteNo
ospf_tagIntegermin: 0, max: 4294967295No
peerIPNo
prefix_listStringRegex: ^[A-Za-z0-9-_]{1,128}$No
standard_community_listsListString[Regex: ^[A-Za-z0-9-_]{1,128}$]No
standard_community_lists_criteriaChoiceor, and, exactNo

actions (sdwan.localized_policies.definitions.route_policies.sequences)

NameTypeConstraintMandatoryDefault Value
aggregatorIntegermin: 0, max: 4294967295No
aggregator_ipIPNo
atomic_aggregateBooleantrue, falseNo
communitiesListAny[Integer[min: 0, max: 4294967295] or String[Regex: ^[0-9]{1,5}(:)[0-9]{1,5}$] or Choice[internet, local-AS]]No
community_additiveBooleantrue, falseNo
exclude_as_pathsListInteger[min: 0, max: 4294967295]No
local_preferenceIntegermin: 0, max: 4294967295No
metricIntegermin: 0, max: 4294967295No
metric_typeChoicetype1, type2No
next_hopIPNo
omp_tagIntegermin: 0, max: 4294967295No
originChoiceegp, igp, incompleteNo
originatorIPNo
ospf_tagIntegermin: 0, max: 4294967295No
prepend_as_pathsListInteger[min: 0, max: 4294967295]No
weightIntegermin: 0, max: 4294967295No

Examples

sdwan:
localized_policies:
definitions:
route_policies:
- name: ROUTE-MAP-SET-OMPTAG
description: "Set OMP tag based on community list"
default_action: accept
sequences:
- id: 10
ip_type: ipv4
base_action: accept
match_criterias:
standard_community_lists:
- COMMUNITY-LIST-REGION1
- COMMUNITY-LIST-REGION2
standard_community_lists_criteria: or
actions:
omp_tag: 12345