Skip to content

Service Route Policy Definition

Configure route policies that can be assigned to routing protocols or when advertising routing protocols to OMP.

Diagram

Diagram

Classes

service_profiles (sdwan.feature_profiles)

NameTypeConstraintMandatoryDefault Value
route_policiesList[route_policies]No

route_policies (sdwan.feature_profiles.service_profiles)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[^&<>! "]{1,128}$No
descriptionStringNo
default_actionChoiceaccept, rejectYes
sequencesList[sequences]No

sequences (sdwan.feature_profiles.service_profiles.route_policies)

NameTypeConstraintMandatoryDefault Value
idIntegermin: 1, max: 65536Yes
nameStringmin: 1, max: 19Noroute
base_actionChoiceaccept, rejectYes
protocolChoiceipv4, ipv6, bothNoipv4
match_entriesClass[match_entries]No
actionsClass[actions]No

match_entries (sdwan.feature_profiles.service_profiles.route_policies.sequences)

NameTypeConstraintMandatoryDefault Value
as_path_listStringRegex: ^[^&<>! "]{1,128}$No
bgp_local_preferenceIntegermin: 0, max: 4294967295No
expanded_community_listStringRegex: ^[^&<>! "]{1,128}$No
extended_community_listStringRegex: ^[^&<>! "]{1,128}$No
ipv4_address_prefix_listStringRegex: ^[^&<>! "]{1,128}$No
ipv4_next_hop_prefix_listStringRegex: ^[^&<>! "]{1,128}$No
ipv6_address_prefix_listStringRegex: ^[^&<>! "]{1,128}$No
ipv6_next_hop_prefix_listStringRegex: ^[^&<>! "]{1,128}$No
metricIntegermin: 0, max: 4294967295No
omp_tagIntegermin: 0, max: 4294967295No
ospf_tagIntegermin: 0, max: 4294967295No
standard_community_listsListString[Regex: ^[^&<>! "]{1,128}$]No
standard_community_lists_criteriaChoiceor, and, exactNo

actions (sdwan.feature_profiles.service_profiles.route_policies.sequences)

NameTypeConstraintMandatoryDefault Value
bgp_local_preferenceIntegermin: 0, max: 4294967295No
communitiesListChoice[internet, local-AS, no-advertise, no-export]No
communities_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
communities_additiveBooleantrue, falseNo
ipv4_next_hopIPNo
ipv6_next_hopIPNo
metricIntegermin: 0, max: 4294967295No
metric_typeChoicetype1, type2No
omp_tagIntegermin: 0, max: 4294967295No
originChoiceigp, egp, incompleteNo
ospf_tagIntegermin: 0, max: 4294967295No
prepend_as_pathsListInteger[min: 1, max: 4294967295]No
weightIntegermin: 0, max: 65535No

Examples

Example-1: This example demonstrates how to configure a service route policy feature that accepts and assigns metric 200 to all prefixes that have OSPF tag 10. All other prefixes are accepted with the default action.

sdwan:
feature_profiles:
service_profiles:
- name: service1
route_policies:
- name: route_policy_set_metric
description: "Set metric for OSPF routes"
default_action: accept
sequences:
- id: 1
base_action: accept
match_entries:
ospf_tag: 10
actions:
metric: 200