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

Method isOvsBridge

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

Source from the content-addressed store, hash-verified

106
107 @staticmethod
108 def isOvsBridge(devName):
109 cmd = bash("which ovs-vsctl")
110 if not cmd.isSuccess():
111 return False
112 try:
113 return 0==subprocess.check_call(("ovs-vsctl", "br-exists", devName))
114 except subprocess.CalledProcessError:
115 return False
116
117 @staticmethod
118 def getBridge(devName):

Callers 2

getDevInfoMethod · 0.80
isPreConfigedMethod · 0.80

Calls 2

bashClass · 0.85
isSuccessMethod · 0.65

Tested by

no test coverage detected