def force_stop(listofinstances): """ Stops Zorp instance(s) by instance name with SIGKILL expects sequence of name(s) """ UInterface.informUser("Stopping Zorp Firewall Suite:") if not listofinstances: UInterface.informUser(ZorpHandler.force_stop()) else: algorithm = StopAlgorithm() algorithm.force = True Zorpctl.runAlgorithmOnList(listofinstances, algorithm)
def force_stop(): algorithm = StopAlgorithm() algorithm.force = True return ZorpHandler.callAlgorithmToAllInstances(algorithm)
def stop(): return ZorpHandler.callAlgorithmToAllInstances(StopAlgorithm())