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

Method isNetworkDev

python/lib/cloudutils/networkConfig.py:96–97  ·  view source on GitHub ↗
(devName)

Source from the content-addressed store, hash-verified

94
95 @staticmethod
96 def isNetworkDev(devName):
97 return os.path.exists("/sys/class/net/%s" % devName)
98
99 @staticmethod
100 def isBridgePort(devName):

Callers 2

getDevInfoMethod · 0.80
isPreConfigedMethod · 0.80

Calls 1

existsMethod · 0.65

Tested by

no test coverage detected