List all available network devices on the system
(self)
| 286 | CsHelper.updatefile(filename, "0\n", "w") |
| 287 | |
| 288 | def buildlist(self): |
| 289 | """ |
| 290 | List all available network devices on the system |
| 291 | """ |
| 292 | self.devlist = [] |
| 293 | for line in open('/proc/net/dev'): |
| 294 | vals = line.lstrip().split(':') |
| 295 | if (not vals[0].startswith("eth")): |
| 296 | continue |
| 297 | self.devlist.append(vals[0]) |
| 298 | |
| 299 | def waitfordevice(self, timeout=2): |
| 300 | count = 0 |
no test coverage detected