diff --git a/lg.py b/lg.py index bfd97f6..abd562a 100644 --- a/lg.py +++ b/lg.py @@ -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)