Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/cloudstack
/ isBridgeSupported
Method
isBridgeSupported
python/lib/cloudutils/networkConfig.py:89–93 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
87
88
@staticmethod
89
def
isBridgeSupported():
90
if
os.path.exists(
"/proc/sys/net/bridge"
):
91
return
True
92
93
return
bash(
"modprobe -b bridge"
).isSuccess()
94
95
@staticmethod
96
def
isNetworkDev(devName):
Callers
1
createBridge
Method · 0.80
Calls
3
bash
Class · 0.85
exists
Method · 0.65
isSuccess
Method · 0.65
Tested by
no test coverage detected