From 453c5e6dc90f3dc15d697884625195abd445b8ab Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Wed, 2 Apr 2025 11:00:30 +0000 Subject: T7290: Fix VPN IPsec log level processing Fix the IPsec log level option processing set vpn ipsec log level '2' Render Jinja2 template to generate correct log for IPsec for the file /etc/strongswan.d/charon-systemd.conf --- data/templates/ipsec/charon_systemd.conf.j2 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 data/templates/ipsec/charon_systemd.conf.j2 (limited to 'data/templates') diff --git a/data/templates/ipsec/charon_systemd.conf.j2 b/data/templates/ipsec/charon_systemd.conf.j2 new file mode 100644 index 000000000..368aa1ae3 --- /dev/null +++ b/data/templates/ipsec/charon_systemd.conf.j2 @@ -0,0 +1,18 @@ +# Generated by ${vyos_conf_scripts_dir}/vpn_ipsec.py + +charon-systemd { + + # Section to configure native systemd journal logger, very similar to the + # syslog logger as described in LOGGER CONFIGURATION in strongswan.conf(5). + journal { + + # Loglevel for a specific subsystem. + # = + +{% if log.level is vyos_defined %} + # Default loglevel. + default = {{ log.level }} +{% endif %} + } + +} -- cgit v1.2.3