summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorOleksandr Kuchmystyi <o.kuchmystyi@vyos.io>2025-10-24 14:48:42 +0300
committerOleksandr Kuchmystyi <o.kuchmystyi@vyos.io>2025-10-24 14:48:42 +0300
commit34ce34f1680a5c34a68aa7a9774107e7bb2b7610 (patch)
tree94ed873f180c340abc64c0ce9d9ee387697ab485 /data
parentc284938df61b5e970dd13cde03e0693254e89211 (diff)
downloadvyos-1x-34ce34f1680a5c34a68aa7a9774107e7bb2b7610.tar.gz
vyos-1x-34ce34f1680a5c34a68aa7a9774107e7bb2b7610.zip
syslog: T4251: Fix TLS enablement logic for syslog
Diffstat (limited to 'data')
-rw-r--r--data/templates/rsyslog/rsyslog.conf.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/rsyslog/rsyslog.conf.j2 b/data/templates/rsyslog/rsyslog.conf.j2
index 07dbc603d..9b9153010 100644
--- a/data/templates/rsyslog/rsyslog.conf.j2
+++ b/data/templates/rsyslog/rsyslog.conf.j2
@@ -101,7 +101,7 @@ if prifilt("{{ tmp | join(',') }}") then {
target="{{ remote_name }}"
# Port on the remote syslog server
port="{{ remote_options.port }}"
- protocol="{{ 'tcp' if tls.enable is vyos_defined else remote_options.protocol }}"
+ protocol="{{ 'tcp' if tls is vyos_defined else remote_options.protocol }}"
{% if remote_options.format.include_timezone is vyos_defined %}
template="RSYSLOG_SyslogProtocol23Format"
{% endif %}
@@ -112,7 +112,7 @@ if prifilt("{{ tmp | join(',') }}") then {
{% if remote_options.vrf is vyos_defined %}
Device="{{ remote_options.vrf }}"
{% endif %}
-{% if tls.enable is vyos_defined %}
+{% if tls is vyos_defined %}
{% set auth_mode = tls.auth_mode %}
# Specify the use of the OpenSSL TLS driver for this action
StreamDriver="ossl"