summaryrefslogtreecommitdiffstats
path: root/manager/knot_resolver_manager/datamodel/templates/network.lua.j2
diff options
context:
space:
mode:
authorAleš <ales.mrazek@nic.cz>2022-01-17 18:53:19 +0100
committerAleš Mrázek <ales.mrazek@nic.cz>2022-04-08 16:17:53 +0200
commit0b1a7286082d712998d8c586f86bc129407f6d38 (patch)
treefdd3536a1e56aacfdc0a6d9ffa277a1ba82c8c99 /manager/knot_resolver_manager/datamodel/templates/network.lua.j2
parentMerge branch 'manager-systemd-improvements' into 'manager' (diff)
downloadknot-resolver-0b1a7286082d712998d8c586f86bc129407f6d38.tar.xz
knot-resolver-0b1a7286082d712998d8c586f86bc129407f6d38.zip
datamodel: network: interfaces schema changed to new listen schema #703
- list of ip-address, interface and unix-socket can be used - <ip-address/interface>@<port> syntax to specify the port number - config files and unit tests updated
Diffstat (limited to 'manager/knot_resolver_manager/datamodel/templates/network.lua.j2')
-rw-r--r--manager/knot_resolver_manager/datamodel/templates/network.lua.j28
1 files changed, 4 insertions, 4 deletions
diff --git a/manager/knot_resolver_manager/datamodel/templates/network.lua.j2 b/manager/knot_resolver_manager/datamodel/templates/network.lua.j2
index 9bfd0dfd..edcfd177 100644
--- a/manager/knot_resolver_manager/datamodel/templates/network.lua.j2
+++ b/manager/knot_resolver_manager/datamodel/templates/network.lua.j2
@@ -1,4 +1,4 @@
-{% from 'macros/network_macros.lua.j2' import net_listen %}
+{% from 'macros/network_macros.lua.j2' import network_listen %}
-- network.do-ipv4/6
net.ipv4 = {{ 'true' if cfg.network.do_ipv4 else 'false' }}
@@ -65,7 +65,7 @@ renumber.config = {
}
{% endif %}
--- network.interfaces
-{% for interface in cfg.network.interfaces %}
-{{ net_listen(interface) }}
+-- network.listen
+{% for listen in cfg.network.listen %}
+{{ network_listen(listen) }}
{% endfor %} \ No newline at end of file