summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-05-05 14:55:35 +0200
committerChristian Poessinger <christian@poessinger.com>2019-05-05 14:55:35 +0200
commit09df82d3a4ff2e0912992cb5c73d5d9fce7070dd (patch)
treea702d6599d1918eb60032427fe995f4ba64fa05b /src/conf_mode
parentae31b619c62eb7a2c086a7960fe4bf042dd79c39 (diff)
downloadvyos-1x-09df82d3a4ff2e0912992cb5c73d5d9fce7070dd.tar.gz
vyos-1x-09df82d3a4ff2e0912992cb5c73d5d9fce7070dd.zip
[dhcp-server] T103: wrong hostnames in hosts file
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/dhcp_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py
index c8ae2fa91..78927a847 100755
--- a/src/conf_mode/dhcp_server.py
+++ b/src/conf_mode/dhcp_server.py
@@ -186,7 +186,7 @@ shared-network {{ network.name }} {
{%- endif -%}
{%- for host in subnet.static_mapping %}
{% if not host.disabled -%}
- host {{ network.name }}_{{ host.name }} {
+ host {% if host_decl_name -%} {{ host.name }} {%- else -%} {{ network.name }}_{{ host.name }} {%- endif %} {
fixed-address {{ host.ip_address }};
hardware ethernet {{ host.mac_address }};
{%- if host.static_parameters %}