From 3ea5e3d0b890dd57cf9742d990961e9e06c2b1d4 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Wed, 30 May 2012 09:35:03 +0200 Subject: [PATCH] Fix ipv6 re expression --- lg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lg.py b/lg.py index 466811d..bba6fdf 100755 --- a/lg.py +++ b/lg.py @@ -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)