Merge branch 'master' into burble-clean

This commit is contained in:
Simon Marsh 2019-06-22 22:35:25 +01:00
commit 7c27c84887

6
lg.py
View File

@ -670,7 +670,11 @@ def build_as_tree_from_raw_bird_ouput(host, proto, text):
path = None path = None
if line.startswith("BGP.as_path:") and path: if line.startswith("BGP.as_path:") and path:
path.extend(line.replace("BGP.as_path:", "").strip().split(" ")) ASes = line.replace("BGP.as_path:", "").strip().split(" ")
if path:
path.extend(ASes)
else:
path = ASes
if path: if path:
path.append(net_dest) path.append(net_dest)