1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2024-11-24 07:44:43 +01:00

Fix ipv6 re expression

This commit is contained in:
Mehdi Abaakouk 2012-05-30 09:35:03 +02:00
parent e64568a40c
commit 3ea5e3d0b8

2
lg.py
View file

@ -444,7 +444,7 @@ def build_as_tree_from_raw_bird_ouput(host, proto, text):
for line in text: for line in text:
line = line.strip() line = line.strip()
expr = re.search(r'(.*)via\s+([0-9:\.]+)\s+on.*\[(\w+)\s+', line) expr = re.search(r'(.*)via\s+([0-9a-fA-F:\.]+)\s+on.*\[(\w+)\s+', line)
if expr: if expr:
if path: if path:
path.append(net_dest) path.append(net_dest)