Exemple #1
0
    def __init__(self, model, ident):
        super(VM, self).__init__(model, ident)
        self.role_key = 'guests'
        self.screenshot = VMScreenShot(model, ident)
        self.virtviewerfile = VMVirtViewerFile(model, ident)
        self.uri_fmt = '/vms/%s'
        for ident, node in sub_nodes.items():
            setattr(self, ident, node(model, self.ident))
        self.start = self.generate_action_handler('start')
        self.poweroff = self.generate_action_handler('poweroff',
                                                     destructive=True)
        self.shutdown = self.generate_action_handler('shutdown',
                                                     destructive=True)
        self.reset = self.generate_action_handler('reset', destructive=True)
        self.connect = self.generate_action_handler('connect')
        self.clone = self.generate_action_handler_task('clone')
        self.migrate = self.generate_action_handler_task(
            'migrate', ['remote_host', 'user', 'password'])
        self.suspend = self.generate_action_handler('suspend')
        self.resume = self.generate_action_handler('resume')
        self.serial = self.generate_action_handler('serial')

        # set user log messages and make sure all parameters are present
        self.log_map = VM_REQUESTS
        self.log_args.update({'remote_host': ''})
Exemple #2
0
    def __init__(self, model, ident):
        super(VM, self).__init__(model, ident)
        self.role_key = 'guests'
        self.screenshot = VMScreenShot(model, ident)
        self.uri_fmt = '/vms/%s'
        for ident, node in sub_nodes.items():
            setattr(self, ident, node(model, self.ident))
        self.start = self.generate_action_handler('start')
        self.poweroff = self.generate_action_handler('poweroff',
                                                     destructive=True)
        self.shutdown = self.generate_action_handler('shutdown',
                                                     destructive=True)
        self.reset = self.generate_action_handler('reset',
                                                  destructive=True)
        self.connect = self.generate_action_handler('connect')
        self.clone = self.generate_action_handler_task('clone')
        self.migrate = self.generate_action_handler_task('migrate',
                                                         ['remote_host',
                                                          'user',
                                                          'password'])
        self.suspend = self.generate_action_handler('suspend')
        self.resume = self.generate_action_handler('resume')
        self.serial = self.generate_action_handler('serial')

        # set user log messages and make sure all parameters are present
        self.log_map = VM_REQUESTS
        self.log_args.update({'remote_host': ''})
Exemple #3
0
 def __init__(self, model, ident):
     super(VM, self).__init__(model, ident)
     self.role_key = 'guests'
     self.screenshot = VMScreenShot(model, ident)
     self.uri_fmt = '/vms/%s'
     for ident, node in sub_nodes.items():
         setattr(self, ident, node(model, self.ident))
     self.start = self.generate_action_handler('start')
     self.poweroff = self.generate_action_handler('poweroff',
                                                  destructive=True)
     self.shutdown = self.generate_action_handler('shutdown',
                                                  destructive=True)
     self.reset = self.generate_action_handler('reset',
                                               destructive=True)
     self.connect = self.generate_action_handler('connect')
     self.clone = self.generate_action_handler_task('clone')
     self.suspend = self.generate_action_handler('suspend')
     self.resume = self.generate_action_handler('resume')
Exemple #4
0
 def __init__(self, model, ident):
     super(VM, self).__init__(model, ident)
     self.role_key = "guests"
     self.screenshot = VMScreenShot(model, ident)
     self.uri_fmt = "/vms/%s"
     for ident, node in sub_nodes.items():
         setattr(self, ident, node(model, self.ident))
     self.start = self.generate_action_handler("start")
     self.poweroff = self.generate_action_handler("poweroff", destructive=True)
     self.shutdown = self.generate_action_handler("shutdown", destructive=True)
     self.reset = self.generate_action_handler("reset", destructive=True)
     self.connect = self.generate_action_handler("connect")
     self.clone = self.generate_action_handler_task("clone")
     self.migrate = self.generate_action_handler_task("migrate", ["remote_host", "user", "password"])
     self.suspend = self.generate_action_handler("suspend")
     self.resume = self.generate_action_handler("resume")
     self.serial = self.generate_action_handler("serial")
     self.log_map = VM_REQUESTS