Skip to main content

Match Rule

Location in GUI: Tenants » XXX » Policies » Protocol » Match Rules

Diagram

Classes

policies (apic.tenants)

NameTypeConstraintMandatoryDefault Value
match_rulesList[match_rules]No

match_rules (apic.tenants.policies)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
descriptionStringRegex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$No
regex_community_termsList[regex_community_terms]No
community_termsList[community_terms]No
prefixesList[prefixes]No

regex_community_terms (apic.tenants.policies.match_rules)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
regexStringmin: 0, max: 64Yes
typeChoiceregular, extendedNoregular
descriptionStringRegex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$No

community_terms (apic.tenants.policies.match_rules)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
descriptionStringRegex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$No
factorsList[factors]No

prefixes (apic.tenants.policies.match_rules)

NameTypeConstraintMandatoryDefault Value
ipIPYes
descriptionStringRegex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$No
aggregateBooleantrue, falseNofalse
from_lengthIntegermin: 0, max: 128No0
to_lengthIntegermin: 0, max: 128No0

factors (apic.tenants.policies.match_rules.community_terms)

NameTypeConstraintMandatoryDefault Value
communityStringYes
descriptionStringRegex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$No
scopeChoicetransitive, non-transitiveNotransitive

Examples

apic:
tenants:
- name: ABC
policies:
match_rules:
- name: MATCH1
description: desc1
prefixes:
- ip: 10.0.0.0/8
description: desc2
aggregate: true
from_length: 24
to_length: 32