Merge branch 'master' into burble-clean
This commit is contained in:
commit
06a3265278
2
lg.py
2
lg.py
@ -267,6 +267,7 @@ def summary(hosts, proto="ipv4"):
|
|||||||
props["table"] = split[2]
|
props["table"] = split[2]
|
||||||
props["state"] = split[3]
|
props["state"] = split[3]
|
||||||
props["since"] = split[4]
|
props["since"] = split[4]
|
||||||
|
|
||||||
if len(split) > 5:
|
if len(split) > 5:
|
||||||
# if bird is configured for 'timeformat protocol iso long'
|
# if bird is configured for 'timeformat protocol iso long'
|
||||||
# then the 5th column contains the time, rather than info
|
# then the 5th column contains the time, rather than info
|
||||||
@ -277,6 +278,7 @@ def summary(hosts, proto="ipv4"):
|
|||||||
props["info"] = ' '.join(split[5:])
|
props["info"] = ' '.join(split[5:])
|
||||||
else:
|
else:
|
||||||
props["info"] = ""
|
props["info"] = ""
|
||||||
|
|
||||||
data.append(props)
|
data.append(props)
|
||||||
else:
|
else:
|
||||||
app.logger.warning("couldn't parse: %s", line)
|
app.logger.warning("couldn't parse: %s", line)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user