Package backend :: Package server :: Package action_extra_data :: Module virt
[hide private]
[frames] | no frames]

Source Code for Module backend.server.action_extra_data.virt

 1  # 
 2  # Copyright (c) 2008--2015 Red Hat, Inc. 
 3  # 
 4  # This software is licensed to you under the GNU General Public License, 
 5  # version 2 (GPLv2). There is NO WARRANTY for this software, express or 
 6  # implied, including the implied warranties of MERCHANTABILITY or FITNESS 
 7  # FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 
 8  # along with this software; if not, see 
 9  # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. 
10  # 
11  # Red Hat trademarks are not licensed under GPLv2. No permission is 
12  # granted to use or replicate Red Hat trademarks that are incorporated 
13  # in this software or its documentation. 
14  # 
15   
16  from spacewalk.common import rhnFlags 
17  from spacewalk.common.rhnLog import log_debug 
18   
19   
20  __rhnexport__ = ['schedulePoller', 
21                   'reboot', 
22                   'resume', 
23                   'start', 
24                   'suspend', 
25                   'shutdown', 
26                   'destroy', 
27                   'setMemory', 
28                   'setVCPUs' 
29                   ] 
30   
31   
32 -def _do_nothing(server_id, action_id):
33 log_debug(4, action_id) 34 action_status = rhnFlags.get('action_status') 35 log_debug(4, "Action ID: %s, Action Status: %s" % (str(action_id), str(action_status)))
36 37
38 -def schedulePoller(server_id, action_id, data={}):
39 _do_nothing(server_id, action_id)
40 41
42 -def reboot(server_id, action_id, data={}):
43 _do_nothing(server_id, action_id)
44 45
46 -def resume(server_id, action_id, data={}):
47 _do_nothing(server_id, action_id)
48 49
50 -def start(server_id, action_id, data={}):
51 _do_nothing(server_id, action_id)
52 53
54 -def suspend(server_id, action_id, data={}):
55 _do_nothing(server_id, action_id)
56 57
58 -def shutdown(server_id, action_id, data={}):
59 _do_nothing(server_id, action_id)
60 61
62 -def destroy(server_id, action_id, data={}):
63 _do_nothing(server_id, action_id)
64 65
66 -def setMemory(server_id, action_id, data={}):
67 _do_nothing(server_id, action_id)
68 69
70 -def setVCPUs(server_id, action_id, data={}):
71 _do_nothing(server_id, action_id)
72