1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2024-12-22 04:24:42 +01:00

bgpmap: Fix crash when 'peer_protocol_name' is not matched by regexp

This protects against cases where the regexp expr2 is broken (such as
currently with some interface names)

Fixes: #64
This commit is contained in:
Baptiste Jonglez 2020-06-16 15:36:44 +02:00
parent c84267edd8
commit 53e717381d

2
lg.py
View file

@ -558,7 +558,7 @@ def build_as_tree_from_raw_bird_ouput(host, proto, text):
path = None
paths = []
net_dest = None
peer_protocol_name = None
peer_protocol_name = ""
for line in text:
line = line.strip()