summaryrefslogtreecommitdiff
path: root/data/templates/ipsec/ipsec.conf.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-03 17:47:52 +0200
committerChristian Poessinger <christian@poessinger.com>2021-07-03 17:49:04 +0200
commit469cd1de9f904bcc451379316f39f7ef34f0eca0 (patch)
tree390fe05c91c303adde3e7007c1956c3336fc9482 /data/templates/ipsec/ipsec.conf.tmpl
parentdcfeb0de0a510d00c37101da50205b51dd464d72 (diff)
downloadvyos-1x-469cd1de9f904bcc451379316f39f7ef34f0eca0.tar.gz
vyos-1x-469cd1de9f904bcc451379316f39f7ef34f0eca0.zip
ipsec: T2816: rework log options for debugging
Renamed CLI from "logging log-modes" to "log subsystem" and "logging log-level" to "log level". THat is more human firendly.
Diffstat (limited to 'data/templates/ipsec/ipsec.conf.tmpl')
-rw-r--r--data/templates/ipsec/ipsec.conf.tmpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/data/templates/ipsec/ipsec.conf.tmpl b/data/templates/ipsec/ipsec.conf.tmpl
index 6550ea419..a9ea1aac7 100644
--- a/data/templates/ipsec/ipsec.conf.tmpl
+++ b/data/templates/ipsec/ipsec.conf.tmpl
@@ -1,6 +1,15 @@
# Created by VyOS - manual changes will be overwritten
config setup
+{% set charondebug = '' %}
+{% if log is defined and log.subsystem is defined and log.subsystem is not none %}
+{% set subsystem = log.subsystem %}
+{% if 'any' in log.subsystem %}
+{% set subsystem = ['dmn', 'mgr', 'ike', 'chd','job', 'cfg', 'knl', 'net', 'asn',
+ 'enc', 'lib', 'esp', 'tls', 'tnc', 'imc', 'imv', 'pts'] %}
+{% endif %}
+{% set charondebug = subsystem | join (' ' ~ log.level ~ ', ') ~ ' ' ~ log.level %}
+{% endif %}
charondebug = "{{ charondebug }}"
uniqueids = {{ "no" if disable_uniqreqids is defined else "yes" }}