MCPcopy Create free account
hub / github.com/apache/cloudstack / buildlist

Method buildlist

systemvm/debian/opt/cloud/bin/cs/CsAddress.py:288–297  ·  view source on GitHub ↗

List all available network devices on the system

(self)

Source from the content-addressed store, hash-verified

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

Callers 2

__init__Method · 0.95
waitfordeviceMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected