diff --git a/roles/dhcpd/templates/dhcpd.conf.j2 b/roles/dhcpd/templates/dhcpd.conf.j2 index ab46ea8..fe27c66 100644 --- a/roles/dhcpd/templates/dhcpd.conf.j2 +++ b/roles/dhcpd/templates/dhcpd.conf.j2 @@ -1,6 +1,9 @@ # vim: set ft=dhcpd : {# vim: set ft=jinja : #} +option space ubnt; +option ubnt.unifi-address code 1 = ip-address; + {% if dhcp_domain_name is defined %} option domain-name "{{ dhcp_domain_name }}"; {% endif %} @@ -50,6 +53,9 @@ subnet {{ subnet.address|ipv4('network') }} netmask {{ subnet.address|ipv4('netm filename "{{ subnet.boot_filename }}"; {% endif %} {% endif %} +{% if subnet.unifi_address is defined %} + option ubnt.unifi-address {{ subnet.unifi_address }}; +{% endif %} {% if not subnet.ddns_updates|d(true)|bool %} ddns-updates off; {% elif subnet.dynamic_hostnames|d|bool %}