Skip to content

Tenant Policy

Location in GUI: Tenant Template » Tenant Policies

Diagram
NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
tenantStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
sitesListStringNo

Example-1: The example below shows a tenant policy template called TP1 that is created under the tenant NDO1 and the site APIC1.

ndo:
tenant_templates:
tenant_policies:
- name: TP1
tenant: NDO1
sites:
- APIC1

Example-2: The example below demonstrates configuring a BGP Peer Prefix Policy named PREFIX_LIMIT under the tenant policy template TP1. The policy limits the maximum number of prefixes to 5000, with a threshold of 80% and a restart action after 600 seconds.

ndo:
tenant_templates:
tenant_policies:
- name: TP1
tenant: NDO1
sites:
- APIC1
bgp_peer_prefix_policies:
- name: PREFIX_LIMIT
description: Prefix limit for external peers
action: restart
max_prefixes: 5000
threshold: 80
restart_time: 600

Example-1: The example below shows a tenant policy template called TP1 that is created under the tenant NDO1 and the site APIC1.

ndo:
tenant_templates:
tenant_policies:
- name: TP1
tenant: NDO1
sites:
- APIC1