summaryrefslogtreecommitdiffstats
path: root/plugins/xenserver
diff options
context:
space:
mode:
authorEd Leafe <ed@leafe.com>2011-08-03 00:52:15 +0000
committerEd Leafe <ed@leafe.com>2011-08-03 00:52:15 +0000
commita0ec6a6aa5ebdde1d099c5f6c03cf1dbd28441fa (patch)
tree144cdd8a693133386a3af78b20575525396f2464 /plugins/xenserver
parent14e8257af4624fa5b056a1b0e94d1b584e080ce9 (diff)
downloadnova-a0ec6a6aa5ebdde1d099c5f6c03cf1dbd28441fa.tar.gz
nova-a0ec6a6aa5ebdde1d099c5f6c03cf1dbd28441fa.tar.xz
nova-a0ec6a6aa5ebdde1d099c5f6c03cf1dbd28441fa.zip
Removed duplicate methods created by previous merge.
Diffstat (limited to 'plugins/xenserver')
-rwxr-xr-xplugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost27
1 files changed, 0 insertions, 27 deletions
diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost b/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost
index 5169aeb12..c29d57717 100755
--- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost
+++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost
@@ -143,33 +143,6 @@ def host_start(self, arg_dict):
@jsonify
-def set_power_state(self, arg_dict):
- """Reboots or powers off this host. Ideally, we would also like to be
- able to power *on* a host, but right now this is not technically
- feasible.
- """
- power_state = arg_dict.get("power_state")
- if power_state is None:
- raise pluginlib.PluginError(
- _("Missing 'power_state' argument to set_power_state"))
- # Host must be disabled first
-# result = _run_command("xe host-disable")
-# if result:
-# raise pluginlib.PluginError(result)
-# # All running VMs must be shutdown
-# result = _run_command("xe vm-shutdown --multiple power-state=running")
-# if result:
-# raise pluginlib.PluginError(result)
-# cmds = {"reboot": "xe host-reboot", "on": "xe host-power-on",
-# "off": "xe host-shutdown"}
-# result = _run_command(cmds[power_state])
-# # Should be empty string
-# if result:
-# raise pluginlib.PluginError(result)
- return {"power_state": power_state}
-
-
-@jsonify
def host_data(self, arg_dict):
"""Runs the commands on the xenstore host to return the current status
information.