summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-10-10 13:57:20 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-10-10 13:57:20 +0000
commit98f4cc81235b42e602017fda98ab0fc4d22db565 (patch)
treeef8f37e6e65c798d93050f96893c07ce84361826 /data
parent8bd4c4136a248eebdd6d59f8132d394cc1033c29 (diff)
downloadvyos-1x-98f4cc81235b42e602017fda98ab0fc4d22db565.tar.gz
vyos-1x-98f4cc81235b42e602017fda98ab0fc4d22db565.zip
conntrack-sync: T4730: Fix listen-address jinja2 template
Listen address has option 'multi' As resulte we have incorrect template value for listen address - conntrack-sync listen-address '192.0.2.11' in template It looks like "IPv4_address ['192.0.2.11']" in the conntrackd.conf but the correct string expected without brackets Fix it
Diffstat (limited to 'data')
-rw-r--r--data/templates/conntrackd/conntrackd.conf.j24
1 files changed, 3 insertions, 1 deletions
diff --git a/data/templates/conntrackd/conntrackd.conf.j2 b/data/templates/conntrackd/conntrackd.conf.j2
index 66024869d..808a77759 100644
--- a/data/templates/conntrackd/conntrackd.conf.j2
+++ b/data/templates/conntrackd/conntrackd.conf.j2
@@ -9,7 +9,9 @@ Sync {
{% if iface_config.peer is vyos_defined %}
UDP {
{% if listen_address is vyos_defined %}
- IPv4_address {{ listen_address }}
+{% for address in listen_address %}
+ IPv4_address {{ address }}
+{% endfor %}
{% endif %}
IPv4_Destination_Address {{ iface_config.peer }}
Port {{ iface_config.port if iface_config.port is vyos_defined else '3780' }}