MCPcopy 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

createBridgeMethod · 0.80

Calls 3

bashClass · 0.85
existsMethod · 0.65
isSuccessMethod · 0.65

Tested by

no test coverage detected