From e1bef612c75575e8263b0d10d1a43138dd77a0f8 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 1 Dec 2020 16:54:51 +0100 Subject: smoketest: dhcp: T3100: add testcase for static host mappings --- data/templates/dhcp-server/dhcpd.conf.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/templates/dhcp-server') 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 %} -- cgit v1.2.3