Endpoint MAC Tag Policy
NDOLocation in GUI:
Tenant Template » Tenant Policies » Endpoint MAC Tag Policy
Diagram
Section titled “Diagram”Classes
Section titled “Classes”tenant_policies (ndo.tenant_templates)
Section titled “tenant_policies (ndo.tenant_templates)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| endpoint_mac_tag_policies | List | [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)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| mac | String | Regex: ^([0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2}$ | Yes | |
| scope_type | Choice | bd, vrf | Yes | |
| schema | String | Regex: ^[a-zA-Z0-9\s+_.:-]{1,64}$ | Yes | |
| template | String | Yes | ||
| bridge_domain | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | No | |
| vrf | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | No | |
| tag_annotations | List | [tag_annotations] | No | |
| policy_tags | List | [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)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| key | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | Yes | |
| value | String | Regex: ^[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)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| key | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | Yes | |
| value | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | Yes |
Examples
Section titled “Examples”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: webExample-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