roles/dhcpd: Support UniFi DHCP option 43
The `ubnt.unifi-address` DHCP option can be set to provide Ubiquiti hardware with the hostname of the UniFi controller.
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user