diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-10-25 21:04:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-25 21:04:04 +0200 |
commit | d9b1c3dff9aed30fd79aad3f317e2388d4bae719 (patch) | |
tree | f49bf2a034364ef9b04fbaf22f8cda28997581c5 /data/templates | |
parent | 639b2982bbcc72b962bea740a36294ab3d88cbc3 (diff) | |
parent | b1db3de80b8b5f4e2dcbc6d687d342986345c4b2 (diff) | |
download | vyos-1x-d9b1c3dff9aed30fd79aad3f317e2388d4bae719.tar.gz vyos-1x-d9b1c3dff9aed30fd79aad3f317e2388d4bae719.zip |
Merge pull request #1037 from sever-sever/T2683
hosts: T2683: Allow multiple entries for static-host-mapping
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/vyos-hostsd/hosts.tmpl | 5 |
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 %} - |