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

Method set

systemvm/debian/opt/cloud/bin/cs/CsRedundant.py:68–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 self.config = config
67
68 def set(self):
69 logging.debug("Router redundancy status is %s", self.cl.is_redundant())
70 if self.cl.is_redundant():
71 self._redundant_on()
72 else:
73 self._redundant_off()
74
75 def _redundant_off(self):
76 CsHelper.service("conntrackd", "stop")

Callers 1

mainFunction · 0.95

Calls 4

_redundant_onMethod · 0.95
_redundant_offMethod · 0.95
debugMethod · 0.80
is_redundantMethod · 0.80

Tested by

no test coverage detected