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@lists.xensource.com
http://lists.xensource.com/xen-devel