summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2018-07-24 15:23:19 -0700
committerhagbard <vyosdev@derith.de>2018-07-24 15:23:19 -0700
commitf1222dadfd0b25ef62d9862f2e3b239bcfb24096 (patch)
treed760bb2614f92625677200ee8cefe64580e1e6e9 /src/conf_mode
parent8c44fa7fb35f8f42621de06f8a8db5db5a83c193 (diff)
downloadvyos-1x-f1222dadfd0b25ef62d9862f2e3b239bcfb24096.tar.gz
vyos-1x-f1222dadfd0b25ef62d9862f2e3b239bcfb24096.zip
T736: bugfix, if facility is not set by the user, it defaults to *.err,in hosts proto wouldn't have a default, actually it wouldn't exist.
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/syslog.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/conf_mode/syslog.py b/src/conf_mode/syslog.py
index e4101a13b..5dfc6f390 100755
--- a/src/conf_mode/syslog.py
+++ b/src/conf_mode/syslog.py
@@ -153,13 +153,12 @@ def get_config():
## set system syslog host
if c.exists('host'):
+ proto = 'udp'
rhosts = c.list_nodes('host')
for rhost in rhosts:
for fac in c.list_nodes('host ' + rhost + ' facility'):
if c.exists('host ' + rhost + ' facility ' + fac + ' protocol'):
proto = c.return_value('host ' + rhost + ' facility ' + fac + ' protocol')
- else:
- proto = 'udp'
config_data['hosts'].update(
{