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:
parent
e64568a40c
commit
3ea5e3d0b8
2
lg.py
2
lg.py
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue