Skip to content

DHCP Relay Policy

Location in GUI: Tenant Template » Tenant Policies

Diagram
NameTypeConstraintMandatoryDefault Value
dhcp_relay_policiesList[dhcp_relay_policies]No

dhcp_relay_policies (ndo.tenant_templates.tenant_policies)

Section titled “dhcp_relay_policies (ndo.tenant_templates.tenant_policies)”
NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
descriptionStringRegex: ^[a-zA-Z0-9\!#$%()*,-./:;@ _{|}~?&+]{1,128}$No
providersList[providers]No

providers (ndo.tenant_templates.tenant_policies.dhcp_relay_policies)

Section titled “providers (ndo.tenant_templates.tenant_policies.dhcp_relay_policies)”
NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
ipIPYes
typeChoiceepg, external_epgYes
schemaStringRegex: ^[a-zA-Z0-9\s+_.:-]{1,64}$Yes
templateStringYes
application_profileStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$No
endpoint_groupStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$No
l3outStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$No
external_endpoint_groupStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$No
use_server_vrfBooleantrue, falseNofalse

Example-1: The example below shows a tenant policy template called TP1 that is created under the tenant NDO1 and the site APIC1. The DHCP relay policy DRP1 is defined under the tenant policy template. In this DHCP Relay policy there is one provider P1 that is defined with the IP address 1.1.1.1 and the type epg. The EPG name is EPG1 and it is located in the schema ABC, template TEMPLATE1 and the application profile AP1. The provider P1 is also configured to use the server VRF.

ndo:
tenant_templates:
tenant_policies:
- name: TP1
tenant: NDO1
sites:
- APIC1
dhcp_relay_policies:
- name: DRP1
description: DHCP Relay Policy
providers:
- name: P1
ip: 1.1.1.1
type: epg
schema: ABC
template: TEMPLATE1
application_profile: AP1
endpoint_group: EPG1
use_server_vrf: true