From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: [PATCH 0/3] Add XML-RPC support to Xend Date: Tue, 28 Feb 2006 16:22:02 -0600 Message-ID: <4404CD0A.6000903@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Ewan Mellor List-Id: xen-devel@lists.xenproject.org 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