Fix ipv6 re expression

This commit is contained in:
Mehdi Abaakouk 2012-05-30 09:35:03 +02:00
parent e64568a40c
commit 3ea5e3d0b8
1 changed files with 1 additions and 1 deletions

2
lg.py
View File

@ -444,7 +444,7 @@ def build_as_tree_from_raw_bird_ouput(host, proto, text):
for line in text:
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 path:
path.append(net_dest)