Tenant Policy
NDOLocation in GUI:
Tenant Template » Tenant Policies
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 |
|---|---|---|---|---|
| name | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | Yes | |
| tenant | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | Yes | |
| sites | List | String | No |
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.
ndo: tenant_templates: tenant_policies: - name: TP1 tenant: NDO1 sites: - APIC1Example-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: 600Examples
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.
ndo: tenant_templates: tenant_policies: - name: TP1 tenant: NDO1 sites: - APIC1