diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-05-05 14:55:35 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-05-20 21:48:45 +0200 |
commit | b5b6e657ca7f59e21bdc52b975b0f454b9da523f (patch) | |
tree | 09e1d1858ddd3631bb9073b409f460a113b3eb6f /src | |
parent | 2bab972dc8ddd19d106135f34fbaa1bc44f47112 (diff) | |
download | vyos-1x-b5b6e657ca7f59e21bdc52b975b0f454b9da523f.tar.gz vyos-1x-b5b6e657ca7f59e21bdc52b975b0f454b9da523f.zip |
[dhcp-server] T103: wrong hostnames in hosts file
(cherry picked from commit 09df82d3a4ff2e0912992cb5c73d5d9fce7070dd)
Diffstat (limited to 'src')
-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 26c25333e..8dc08563e 100755 --- a/src/conf_mode/dhcp_server.py +++ b/src/conf_mode/dhcp_server.py @@ -184,7 +184,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 %} |