[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xend: add a reset button to Web interface.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1211880685 -3600
# Node ID 9df61d6601ba411eab24378c3caba903db9145dc
# Parent  eafb252f141262c8bd6ce956ed951c40e13d3495
xend: add a reset button to Web interface.
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/python/xen/xend/server/SrvDomain.py |    9 +++++++++
 1 files changed, 9 insertions(+)

diff -r eafb252f1412 -r 9df61d6601ba tools/python/xen/xend/server/SrvDomain.py
--- a/tools/python/xen/xend/server/SrvDomain.py Mon May 26 08:53:25 2008 +0100
+++ b/tools/python/xen/xend/server/SrvDomain.py Tue May 27 10:31:25 2008 +0100
@@ -216,6 +216,11 @@ class SrvDomain(SrvDir):
 
     def op_vcpuinfo(self, _1, req):
         return self.call(self.dom.getVCPUInfo, [], req)
+
+
+    def op_reset(self, _, req):
+        self.acceptCommand(req)
+        return self.xd.domain_reset(self.dom.getName())
 
 
     def render_POST(self, req):
@@ -258,6 +263,10 @@ class SrvDomain(SrvDir):
         req.write('</form>')
 
         req.write('<form method="post" action="%s">' % url)
+        req.write('<input type="submit" name="op" value="reset">')
+        req.write('</form>')
+
+        req.write('<form method="post" action="%s">' % url)
         req.write('<input type="submit" name="op" value="shutdown">')
         req.write('<input type="radio" name="reason" value="poweroff" 
checked>Poweroff')
         req.write('<input type="radio" name="reason" value="halt">Halt')

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.