diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-05-05 14:55:35 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-05-05 14:55:35 +0200 |
commit | 09df82d3a4ff2e0912992cb5c73d5d9fce7070dd (patch) | |
tree | a702d6599d1918eb60032427fe995f4ba64fa05b | |
parent | ae31b619c62eb7a2c086a7960fe4bf042dd79c39 (diff) | |
download | vyos-1x-09df82d3a4ff2e0912992cb5c73d5d9fce7070dd.tar.gz vyos-1x-09df82d3a4ff2e0912992cb5c73d5d9fce7070dd.zip |
[dhcp-server] T103: wrong hostnames in hosts file
-rwxr-xr-x | src/conf_mode/dhcp_server.py | 2 |
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 %} |