summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-10-11 12:55:16 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-10-11 12:55:16 +0000
commit15a649e163fa9ac89d690e25bcb8f81fcefe87ae (patch)
tree04915c06826eb9cb3ab1d6185eaf2c569fc9b522 /data
parent8560c1cc38f9104fe0d12fe72e0312c52afa9c08 (diff)
downloadvyos-1x-15a649e163fa9ac89d690e25bcb8f81fcefe87ae.tar.gz
vyos-1x-15a649e163fa9ac89d690e25bcb8f81fcefe87ae.zip
conntrack-sync: T4730: Fix listen-address jinja2 template
Listen address has option 'multi' As result we have an 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.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/data/templates/conntrackd/conntrackd.conf.tmpl b/data/templates/conntrackd/conntrackd.conf.tmpl
index ff6f785d5..7ec8a727c 100644
--- a/data/templates/conntrackd/conntrackd.conf.tmpl
+++ b/data/templates/conntrackd/conntrackd.conf.tmpl
@@ -10,7 +10,9 @@ Sync {
{% if iface_config.peer is defined and iface_config.peer is not none %}
UDP {
{% if listen_address is defined and listen_address is not none %}
- 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 defined else '3780' }}