Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
getDevInfo
Method · 0.80
isPreConfiged
Method · 0.80
Calls
1
exists
Method · 0.65
Tested by
no test coverage detected