WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 0/3] Add XML-RPC support to Xend

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 0/3] Add XML-RPC support to Xend
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Tue, 28 Feb 2006 16:22:02 -0600
Cc: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Delivery-date: Tue, 28 Feb 2006 22:22:35 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mail/News 1.5 (X11/20060213)
The following patches implement XML-RPC for Xend. The first patch just adds a new server for Xend that exposes the same functions exposed by the S-Expression/HTTP server expect by XML-RPC. There is no change to the code paths taken for any xm commands so it's a rather safe patch to include.

The second patch changes XendClient to use XML-RPC and makes a few subsequent changes to xm to know about the new exception types generated. This changeset has been passing xm-test for the past couple weeks so I'm rather confident that it doesn't introduce any major regressions.

One thing to notice (from the attached diffstat output) is that there is a net reduction in SLOCs even though no functionality was removed. This is because XendClient was greatly simplified by using XML-RPC.

b/tools/python/xen/util/xmlrpclib2.py          |  109 +++++++

b/tools/python/xen/xend/server/XMLRPCServer.py |   97 ++++++

tools/python/xen/xend/XendClient.py            |  369 +++----------------------

tools/python/xen/xend/XendDomain.py            |    2

tools/python/xen/xend/server/SrvServer.py      |    2

tools/python/xen/xm/create.py                  |    8

tools/python/xen/xm/main.py                    |   26 -

7 files changed, 270 insertions(+), 343 deletions(-)


Regards,

Anthony Liguori

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

<Prev in Thread] Current Thread [Next in Thread>