diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-10-17 11:19:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-17 11:19:57 +0200 |
commit | fcf90cd860ba806c9a06526b5e1d88ca18d6f575 (patch) | |
tree | 4929e65e276c456ce8147941e7317b133be4e37e /src/conf_mode/system-syslog.py | |
parent | aa844567456504c5026a9c49d5c4cf590c7cf08b (diff) | |
parent | 0eecfabd74f1f8dec96bf4bb64609eaa609edaef (diff) | |
download | vyos-1x-fcf90cd860ba806c9a06526b5e1d88ca18d6f575.tar.gz vyos-1x-fcf90cd860ba806c9a06526b5e1d88ca18d6f575.zip |
Merge pull request #573 from sever-sever/T2938
conf-mode: T2938: Add format octet-counted for syslog
Diffstat (limited to 'src/conf_mode/system-syslog.py')
-rwxr-xr-x | src/conf_mode/system-syslog.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/conf_mode/system-syslog.py b/src/conf_mode/system-syslog.py index d29109c41..b1daf7a82 100755 --- a/src/conf_mode/system-syslog.py +++ b/src/conf_mode/system-syslog.py @@ -146,6 +146,12 @@ def get_config(config=None): config_data['hosts'][rhost][ 'port'] = c.return_value(['host', rhost, 'port']) + # set system syslog host x.x.x.x format octet-counted + if c.exists('host ' + rhost + ' format octet-counted'): + config_data['hosts'][rhost]['oct_count'] = True + else: + config_data['hosts'][rhost]['oct_count'] = False + # set system syslog user if c.exists('user'): usrs = c.list_nodes('user') |