summaryrefslogtreecommitdiff
path: root/data/templates/ipsec/ipsec.conf.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-13 22:51:42 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-13 22:51:42 +0200
commite8a637eec0cc398f78a877ece6b9c7cdca418970 (patch)
treed5950ea33e209a3a290b617d501807959102a9d0 /data/templates/ipsec/ipsec.conf.tmpl
parentfc36d67b051bad776a5b1d6e9a04f1205487f01f (diff)
downloadvyos-1x-e8a637eec0cc398f78a877ece6b9c7cdca418970.tar.gz
vyos-1x-e8a637eec0cc398f78a877ece6b9c7cdca418970.zip
ipsec: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/ipsec/ipsec.conf.tmpl')
-rw-r--r--data/templates/ipsec/ipsec.conf.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/templates/ipsec/ipsec.conf.tmpl b/data/templates/ipsec/ipsec.conf.tmpl
index 1cb531e76..0f7131dff 100644
--- a/data/templates/ipsec/ipsec.conf.tmpl
+++ b/data/templates/ipsec/ipsec.conf.tmpl
@@ -2,7 +2,7 @@
config setup
{% set charondebug = '' %}
-{% if log is defined and log.subsystem is defined and log.subsystem is not none %}
+{% if log.subsystem is vyos_defined %}
{% set subsystem = log.subsystem %}
{% if 'any' in log.subsystem %}
{% set subsystem = ['dmn', 'mgr', 'ike', 'chd','job', 'cfg', 'knl', 'net', 'asn',
@@ -11,8 +11,8 @@ config setup
{% set charondebug = subsystem | join (' ' ~ log.level ~ ', ') ~ ' ' ~ log.level %}
{% endif %}
charondebug = "{{ charondebug }}"
- uniqueids = {{ "no" if disable_uniqreqids is defined else "yes" }}
+ uniqueids = {{ "no" if disable_uniqreqids is vyos_defined else "yes" }}
-{% if include_ipsec_conf is defined %}
+{% if include_ipsec_conf is vyos_defined %}
include {{ include_ipsec_conf }}
{% endif %}