Skip to content

Endpoint MAC Tag Policy

Location in GUI: Tenant Template » Tenant Policies » Endpoint MAC Tag Policy

Diagram
NameTypeConstraintMandatoryDefault Value
endpoint_mac_tag_policiesList[endpoint_mac_tag_policies]No

endpoint_mac_tag_policies (ndo.tenant_templates.tenant_policies)

Section titled “endpoint_mac_tag_policies (ndo.tenant_templates.tenant_policies)”
NameTypeConstraintMandatoryDefault Value
macStringRegex: ^([0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2}$Yes
scope_typeChoicebd, vrfYes
schemaStringRegex: ^[a-zA-Z0-9\s+_.:-]{1,64}$Yes
templateStringYes
bridge_domainStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$No
vrfStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$No
tag_annotationsList[tag_annotations]No
policy_tagsList[policy_tags]No

tag_annotations (ndo.tenant_templates.tenant_policies.endpoint_mac_tag_policies)

Section titled “tag_annotations (ndo.tenant_templates.tenant_policies.endpoint_mac_tag_policies)”
NameTypeConstraintMandatoryDefault Value
keyStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
valueStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes

policy_tags (ndo.tenant_templates.tenant_policies.endpoint_mac_tag_policies)

Section titled “policy_tags (ndo.tenant_templates.tenant_policies.endpoint_mac_tag_policies)”
NameTypeConstraintMandatoryDefault Value
keyStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
valueStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes

Example-1: The example below shows a tenant policy template called TP1 that is created under the tenant NDO1 and the site APIC1. The endpoint MAC tag policy is scoped to a bridge domain BD1 in schema SCHEMA1 template TEMPLATE1, with policy tags and annotations.

ndo:
tenant_templates:
tenant_policies:
- name: TP1
tenant: NDO1
sites:
- APIC1
endpoint_mac_tag_policies:
- mac: AA:BB:A1:B2:C3:D4
scope_type: bd
schema: SCHEMA1
template: TEMPLATE1
bridge_domain: BD1
tag_annotations:
- key: env
value: prod
policy_tags:
- key: role
value: web

Example-2: The example below shows an endpoint MAC tag policy scoped to a VRF VRF1.

ndo:
tenant_templates:
tenant_policies:
- name: TP1
tenant: NDO1
sites:
- APIC1
endpoint_mac_tag_policies:
- mac: AA:BB:A1:B2:C3:D5
scope_type: vrf
schema: SCHEMA1
template: TEMPLATE1
vrf: VRF1