#
#	This file has been generated by mgmt config. Do not edit.
#

# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp-server/dhcpd.conf.example
#   see dhcpd.conf(5) man page
#

#
#	global option definitions
#
{{ if .domain -}}
option domain-name "{{ .domain }}";
{{ end -}}
{{ if .dns -}}
option domain-name-servers {{ .dns }};
{{ end -}}

#
#	dhcpd settings
#
{{ if .omapiport -}}
#omapi-port {{ .omapiport }}; # FIXME !
{{ end -}}
{{ if .serveridentifier -}}
#server-identifier {{ .serveridentifier }}; # FIXME !
{{ end -}}
default-lease-time {{ .defaultleasetime }};
max-lease-time {{ .maxleasetime }};

# Use this to enable / disable dynamic dns updates globally.
#ddns-update-style none;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
{{ if .authoritative -}}
authoritative;
{{ else -}}
#authoritative; # not authoritative!
{{ end -}}

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

#
#	include all the subnet definitions
#
include "/etc/dhcp/subnets.conf";

#
#	include all the hosts
#
include "/etc/dhcp/hosts.conf";
