diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2025-04-02 11:00:30 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2025-04-02 11:51:49 +0000 |
commit | 453c5e6dc90f3dc15d697884625195abd445b8ab (patch) | |
tree | 36af588f63181f2b5a74d01028acbf27e2cdf97b /data/templates | |
parent | 2c1e0b5c73746bd6ca71b006e79f842ec27e9044 (diff) | |
download | vyos-1x-453c5e6dc90f3dc15d697884625195abd445b8ab.tar.gz vyos-1x-453c5e6dc90f3dc15d697884625195abd445b8ab.zip |
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
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/ipsec/charon_systemd.conf.j2 | 18 |
1 files changed, 18 insertions, 0 deletions
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. + # <subsystem> = <default> + +{% if log.level is vyos_defined %} + # Default loglevel. + default = {{ log.level }} +{% endif %} + } + +} |