Lines Matching refs:output
20 def CheckNetTraffic(output):
21 result = re.search("Received Bytes:\d+\nSent Bytes:\d+\n", output)
25 def CheckNetstat(output):
26 result = re.search("Proto RefCnt Flags\s+Type\s+State\s+I-Node Path\n([^\n]+\n){4,}", output)
30 def CheckNetDev(output):
31 result = re.search("face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compresse\n([^\n]+\n){4,}", output)
35 def CheckIfconfig(output):
36 result = re.search("cmd is: ifconfig -a\n\n([^\n]+){4,}\n", output)
39 def CheckNetAllOutput(output):
40 ret = all([CheckNetTraffic(output), CheckNetstat(output), CheckNetDev(output), CheckIfconfig(output)])