diff options
| author | Daniil Baturin <daniil@vyos.io> | 2026-03-18 15:12:55 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-18 15:12:55 +0000 |
| commit | 42b2376e030f85b602862632b3e8e8534a3a5ef1 (patch) | |
| tree | 7ba61ad8d1f84ac672ebe231b5e061700d8204c6 | |
| parent | d5b4ac579a902408addf711276dfbf0d95b7a19b (diff) | |
| parent | 8714825922af321942975d231e6065fb752abb1d (diff) | |
| download | vyos-1x-42b2376e030f85b602862632b3e8e8534a3a5ef1.tar.gz vyos-1x-42b2376e030f85b602862632b3e8e8534a3a5ef1.zip | |
Merge pull request #5053 from alexk37/fix-ipsec-ra-local-port
T8386: fix locat_ts rendering in remote_access.j2
| -rw-r--r-- | data/templates/ipsec/swanctl/remote_access.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/ipsec/swanctl/remote_access.j2 b/data/templates/ipsec/swanctl/remote_access.j2 index 77731e827..639248caf 100644 --- a/data/templates/ipsec/swanctl/remote_access.j2 +++ b/data/templates/ipsec/swanctl/remote_access.j2 @@ -79,7 +79,7 @@ {% endif %} {% set local_prefix = rw_conf.local.prefix if rw_conf.local.prefix is vyos_defined else ['0.0.0.0/0', '::/0'] %} {% set local_port = rw_conf.local.port if rw_conf.local.port is vyos_defined else '' %} -{% set local_suffix = '[%any/{1}]'.format(local_port) if local_port else '' %} +{% set local_suffix = '[%any/{port}]'.format(port=local_port) if local_port else '' %} local_ts = {{ local_prefix | join(local_suffix + ",") }}{{ local_suffix }} {% if rw_conf.bind is vyos_defined %} {# The key defaults to 0 and will match any policies which similarly do not have a lookup key configuration. #} |
