diff options
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/dhcp-server/dhcpd.conf.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/dhcp-server/dhcpd.conf.tmpl b/data/templates/dhcp-server/dhcpd.conf.tmpl index 3e0fd8d1d..d172018bf 100644 --- a/data/templates/dhcp-server/dhcpd.conf.tmpl +++ b/data/templates/dhcp-server/dhcpd.conf.tmpl @@ -150,7 +150,7 @@ shared-network {{ network.name }} { max-lease-time {{ subnet.lease }}; {% endif %} {% for host in subnet.static_mapping if not host.disabled %} - host {% if host_decl_name %} {{ host.name }} {% else %} {{ network.name }}_{{ host.name }} {% endif %} { + host {{ host.name if host_decl_name else network.name + '_' + host.name }} { {% if host.ip_address %} fixed-address {{ host.ip_address }}; {% endif %} |