コード例 #1
0
ファイル: Zorpctl.py プロジェクト: kmarcell/zorp
    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)
コード例 #2
0
ファイル: Instances.py プロジェクト: matepeter90/zorp
 def force_stop():
     algorithm = StopAlgorithm()
     algorithm.force = True
     return ZorpHandler.callAlgorithmToAllInstances(algorithm)
コード例 #3
0
ファイル: Instances.py プロジェクト: erdoukki/zorp
 def force_stop():
     algorithm = StopAlgorithm()
     algorithm.force = True
     return ZorpHandler.callAlgorithmToAllInstances(algorithm)
コード例 #4
0
ファイル: Instances.py プロジェクト: erdoukki/zorp
 def stop():
     return ZorpHandler.callAlgorithmToAllInstances(StopAlgorithm())