From 0eecfabd74f1f8dec96bf4bb64609eaa609edaef Mon Sep 17 00:00:00 2001 From: sever-sever Date: Fri, 16 Oct 2020 12:50:36 +0000 Subject: syslog: T2938: Add format octet-counted for syslog conf-mode --- src/conf_mode/system-syslog.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/conf_mode/system-syslog.py') 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') -- cgit v1.2.3