summaryrefslogtreecommitdiff
path: root/data/templates/ipsec/interfaces_use.conf.tmpl
diff options
context:
space:
mode:
authorSimon <965089+sarthurdev@users.noreply.github.com>2021-05-31 06:11:26 +0200
committerGitHub <noreply@github.com>2021-05-31 06:11:26 +0200
commitaf6485a0108cda618ff91423f6645dee8126c5d7 (patch)
treec77fdcf7c7bf557213b4fdd6a4696af7387f4c07 /data/templates/ipsec/interfaces_use.conf.tmpl
parent3a8b7d7a10c23c0ffccebfca23054fd5c8a50018 (diff)
downloadvyos-1x-af6485a0108cda618ff91423f6645dee8126c5d7.tar.gz
vyos-1x-af6485a0108cda618ff91423f6645dee8126c5d7.zip
ipsec: T2816: Continued refactor, added proper ipsec-interfaces handling
Diffstat (limited to 'data/templates/ipsec/interfaces_use.conf.tmpl')
-rw-r--r--data/templates/ipsec/interfaces_use.conf.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/ipsec/interfaces_use.conf.tmpl b/data/templates/ipsec/interfaces_use.conf.tmpl
new file mode 100644
index 000000000..3d285b9be
--- /dev/null
+++ b/data/templates/ipsec/interfaces_use.conf.tmpl
@@ -0,0 +1,6 @@
+{% if ipsec_interfaces is defined and 'interface' in ipsec_interfaces %}
+{% set interfaces = ipsec_interfaces['interface'] %}
+charon {
+ interfaces_use = {{ ', '.join(interfaces) if interfaces is not string else interfaces }}
+}
+{% endif %} \ No newline at end of file