diff options
author | Christian Breunig <christian@breunig.cc> | 2025-01-18 20:28:16 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2025-02-04 18:09:39 +0100 |
commit | 5a7a9f3a20e19a52572ce1b9b214528b6ce958ce (patch) | |
tree | 2495a4210e82ff8bdaf76e1d01cfd895e931d16b /data | |
parent | 3f4c6422110c9a242ff3b81abd4f5ac5e01d5ab9 (diff) | |
download | vyos-1x-5a7a9f3a20e19a52572ce1b9b214528b6ce958ce.tar.gz vyos-1x-5a7a9f3a20e19a52572ce1b9b214528b6ce958ce.zip |
syslog: T6989: add possibility to define VRF per remote
Rsyslog supports individual VRFs per omfwd remote entry - so we should support
this, too.
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/rsyslog/rsyslog.conf.j2 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/data/templates/rsyslog/rsyslog.conf.j2 b/data/templates/rsyslog/rsyslog.conf.j2 index daaafa6d1..45742b073 100644 --- a/data/templates/rsyslog/rsyslog.conf.j2 +++ b/data/templates/rsyslog/rsyslog.conf.j2 @@ -106,12 +106,11 @@ if prifilt("{{ tmp | join(',') }}") then { template="SyslogProtocol23Format" {% endif %} TCP_Framing="{{ 'octed-counted' if remote_options.format.octet_counted is vyos_defined else 'traditional' }}" -{% if source_address is vyos_defined %} - # Sender IP address - Address="{{ source_address }}" +{% if remote_options.source_address is vyos_defined %} + Address="{{ remote_options.source_address }}" {% endif %} -{% if vrf is vyos_defined %} - Device="{{ vrf }}" +{% if remote_options.vrf is vyos_defined %} + Device="{{ remote_options.vrf }}" {% endif %} ) } @@ -121,3 +120,4 @@ if prifilt("{{ tmp | join(',') }}") then { # Include all configuration files in /etc/rsyslog.d/ include(file="/etc/rsyslog.d/*.conf") + |