summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-01 16:54:51 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-01 16:54:51 +0100
commite1bef612c75575e8263b0d10d1a43138dd77a0f8 (patch)
tree097387d79eb8c734749b1d2ecd85f7fc4a692d4f /data
parent0a7888e165396dd200bc73a060c330c04fec0920 (diff)
downloadvyos-1x-e1bef612c75575e8263b0d10d1a43138dd77a0f8.tar.gz
vyos-1x-e1bef612c75575e8263b0d10d1a43138dd77a0f8.zip
smoketest: dhcp: T3100: add testcase for static host mappings
Diffstat (limited to 'data')
-rw-r--r--data/templates/dhcp-server/dhcpd.conf.tmpl2
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 %}