Lines Matching refs:re
24 import time, os, logging, re, signal
151 Migrate a VM locally and re-register it in the environment.
312 if re.search(r"\bFAILED (1060|1062)\b", o, re.I):
333 if re.search(r"\bFAILED 1060\b", o, re.I):
337 if re.search(r"\bFAILED 1056\b", o, re.I):
361 if len(re.findall("ntpdate|w32tm", time_command)) == 0:
366 s = re.findall(time_filter_re, s)[0]
378 if re.match('ntpdate', time_command):
379 offset = re.findall('offset (.*) sec', o)[0]
380 host_main, host_mantissa = re.findall(time_filter_re, o)[0]
385 guest_time = re.findall(time_filter_re, o)[0]
386 offset = re.findall("o:(.*)s", o)[0]
387 if re.match('PM', guest_time):
388 hour = re.findall('\d+ (\d+):', guest_time)[0]
390 guest_time = re.sub('\d+\s\d+:', "\d+\s%s:" % hour,
660 return int(re.findall('(\d+)% packet loss', output)[0])
712 status = int(re.findall("\d+", o2)[0])
778 ethname = re.findall("(\w+)\s+Link.*%s" % mac_address, output,
779 re.IGNORECASE)[0]