[ipt] Les interfaces dynamiques peuvent générer un numéro > 9

Ignore-this: b5a8a82cdfe17fad9281afcd0c200136

darcs-hash:20110507163959-ffbb2-89f7d24581a9080dc3ebf1a706eb1e1f2fba1ee8.gz
This commit is contained in:
Nicolas Dandrimont 2011-05-07 18:39:59 +02:00
parent 616218e0b1
commit 7b206af71c

View file

@ -451,7 +451,7 @@ def iface6(net):
subnet = netaddr.IPNetwork(prefix[net][0])
i = 0
while i < len(output):
if re.match('^[0-9]:', output[i]):
if re.match('^[0-9]+:', output[i]):
dev = re.sub('(@.*|:)', '', output[i].split()[1])
i = i + 1
while (i < len(output)) and ('inet6' in output[i]):