diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-10-10 13:57:20 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-10-10 13:57:20 +0000 |
commit | 98f4cc81235b42e602017fda98ab0fc4d22db565 (patch) | |
tree | ef8f37e6e65c798d93050f96893c07ce84361826 /data | |
parent | 8bd4c4136a248eebdd6d59f8132d394cc1033c29 (diff) | |
download | vyos-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.j2 | 4 |
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' }} |