summaryrefslogtreecommitdiff
path: root/data/templates/vyos-hostsd/hosts.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-07-05 12:30:12 +0200
committerGitHub <noreply@github.com>2022-07-05 12:30:12 +0200
commit459f8ea10227b5644083ddcf8a0e8b63faa22313 (patch)
tree964aeb5f7540862890d0c602b6b0e470dec0130e /data/templates/vyos-hostsd/hosts.tmpl
parentcac6da1e3038cba22735eafd9f8b4ec13359a2d7 (diff)
parenteaaaa797fa9dac621b964f1bd02fab3b9eebe55e (diff)
downloadvyos-1x-459f8ea10227b5644083ddcf8a0e8b63faa22313.tar.gz
vyos-1x-459f8ea10227b5644083ddcf8a0e8b63faa22313.zip
Merge pull request #1391 from c-po/t4510-static-host-equuleus
hosts: T2683: Allow multiple entries for static-host-mapping (equuleus)
Diffstat (limited to 'data/templates/vyos-hostsd/hosts.tmpl')
-rw-r--r--data/templates/vyos-hostsd/hosts.tmpl5
1 files changed, 3 insertions, 2 deletions
diff --git a/data/templates/vyos-hostsd/hosts.tmpl b/data/templates/vyos-hostsd/hosts.tmpl
index 8b73c6e51..03662d562 100644
--- a/data/templates/vyos-hostsd/hosts.tmpl
+++ b/data/templates/vyos-hostsd/hosts.tmpl
@@ -17,8 +17,9 @@ ff02::2 ip6-allrouters
{% for tag, taghosts in hosts.items() %}
# {{ tag }}
{% for host, hostprops in taghosts.items() if hostprops.address is defined %}
-{{ "%-15s" | format(hostprops.address) }} {{ host }} {{ hostprops.aliases|join(' ') if hostprops.aliases is defined }}
+{% for addr in hostprops.address %}
+{{ "%-15s" | format(addr) }} {{ host }} {{ hostprops.aliases|join(' ') if hostprops.aliases is defined }}
+{% endfor %}
{% endfor %}
{% endfor %}
{% endif %}
-