summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-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