diff options
author | hagbard <vyosdev@derith.de> | 2019-12-06 15:34:15 -0800 |
---|---|---|
committer | hagbard <vyosdev@derith.de> | 2019-12-06 15:34:15 -0800 |
commit | 9080dda455052203c5b53d9d1f8bf08156c9af51 (patch) | |
tree | f0fc3a9ff4a8af612704e851ef3a5123b15ca3ba /src/conf_mode | |
parent | 1ac177febfdd0dfc5a5b40a1b30294de0e2a45e0 (diff) | |
download | vyos-1x-9080dda455052203c5b53d9d1f8bf08156c9af51.tar.gz vyos-1x-9080dda455052203c5b53d9d1f8bf08156c9af51.zip |
syslog: T1845: syslog host no longer accepts a port
- setting default port if not configured to udp
- remove debug output
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/system-syslog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/system-syslog.py b/src/conf_mode/system-syslog.py index 4f0a54962..15533afab 100755 --- a/src/conf_mode/system-syslog.py +++ b/src/conf_mode/system-syslog.py @@ -186,6 +186,7 @@ def get_config(): # set system syslog host if c.exists('host'): rhosts = c.list_nodes('host') + proto = 'udp' for rhost in rhosts: for fac in c.list_nodes('host ' + rhost + ' facility'): if c.exists('host ' + rhost + ' facility ' + fac + ' protocol'): @@ -303,7 +304,6 @@ def verify(c): for s in c[conf][item]['selectors'].split(";"): f = re.sub("\..*$", "", s) if f not in fac: - print (c[conf]) raise ConfigError( 'Invalid facility ' + s + ' set in ' + conf + ' ' + item) l = re.sub("^.+\.", "", s) |