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

Method restore

python/lib/cloudutils/serviceConfig.py:227–238  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

225 raise
226
227 def restore(self):
228 try:
229 if self.netMgrRunning:
230 self.syscfg.svo.enableService("network-manager")
231 self.syscfg.svo.startService("network-manager")
232
233 bash("/etc/init.d/networking stop")
234 bash("/etc/init.d/networking start")
235 return True
236 except:
237 logging.debug(formatExceptionInfo())
238 return False
239
240class networkConfigRedhat(serviceCfgBase, networkConfigBase):
241 def __init__(self, syscfg):

Callers

nothing calls this directly

Calls 5

bashClass · 0.85
formatExceptionInfoFunction · 0.85
debugMethod · 0.80
enableServiceMethod · 0.65
startServiceMethod · 0.45

Tested by

no test coverage detected