summaryrefslogtreecommitdiff
path: root/src/conf_mode/system-syslog.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-10-17 11:19:57 +0200
committerGitHub <noreply@github.com>2020-10-17 11:19:57 +0200
commitfcf90cd860ba806c9a06526b5e1d88ca18d6f575 (patch)
tree4929e65e276c456ce8147941e7317b133be4e37e /src/conf_mode/system-syslog.py
parentaa844567456504c5026a9c49d5c4cf590c7cf08b (diff)
parent0eecfabd74f1f8dec96bf4bb64609eaa609edaef (diff)
downloadvyos-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-xsrc/conf_mode/system-syslog.py6
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')