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

Method listNetworks

python/lib/cloudutils/networkConfig.py:38–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37 @staticmethod
38 def listNetworks():
39 devs = os.listdir("/sys/class/net/")
40 devs = list(filter(networkConfig.isBridge, devs))
41 return devs
42 @staticmethod
43 def getDefaultNetwork():
44 cmd = bash("ip route show default | awk \'{print $3,$5}\'")

Callers

nothing calls this directly

Calls 1

filterFunction · 0.85

Tested by

no test coverage detected