Merge branch 'master' into burble-clean

This commit is contained in:
Simon Marsh 2019-05-13 20:51:16 +01:00
commit 06a3265278
Signed by: burble
GPG Key ID: 7B9FE8780CFB6593

2
lg.py
View File

@ -267,6 +267,7 @@ def summary(hosts, proto="ipv4"):
props["table"] = split[2]
props["state"] = split[3]
props["since"] = split[4]
if len(split) > 5:
# if bird is configured for 'timeformat protocol iso long'
# then the 5th column contains the time, rather than info
@ -277,6 +278,7 @@ def summary(hosts, proto="ipv4"):
props["info"] = ' '.join(split[5:])
else:
props["info"] = ""
data.append(props)
else:
app.logger.warning("couldn't parse: %s", line)