Merge branch 'master' into burble-clean
This commit is contained in:
commit
7c27c84887
6
lg.py
6
lg.py
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user