Esempio n. 1
0
    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)
Esempio n. 2
0
 def force_stop():
     algorithm = StopAlgorithm()
     algorithm.force = True
     return ZorpHandler.callAlgorithmToAllInstances(algorithm)
Esempio n. 3
0
 def force_stop():
     algorithm = StopAlgorithm()
     algorithm.force = True
     return ZorpHandler.callAlgorithmToAllInstances(algorithm)
Esempio n. 4
0
 def stop():
     return ZorpHandler.callAlgorithmToAllInstances(StopAlgorithm())