From af6485a0108cda618ff91423f6645dee8126c5d7 Mon Sep 17 00:00:00 2001 From: Simon <965089+sarthurdev@users.noreply.github.com> Date: Mon, 31 May 2021 06:11:26 +0200 Subject: ipsec: T2816: Continued refactor, added proper ipsec-interfaces handling --- data/templates/ipsec/interfaces_use.conf.tmpl | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 data/templates/ipsec/interfaces_use.conf.tmpl (limited to 'data/templates/ipsec/interfaces_use.conf.tmpl') 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 -- cgit v1.2.3