From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yosuke Iwamatsu Subject: [PATCH] XM/XenAPI: Enable console other_config to be passed through Xen API Date: Wed, 07 May 2008 19:27:03 +0900 Message-ID: <482183F7.9040300@ab.jp.nec.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080407020603020609000904" 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@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------080407020603020609000904 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Currently console class's "other_config" parameters (such as "vnclisten" and "vncpasswd") are not passed to xend when creating a domain by xm command through xen-api. The attached patch fixes this problem. Regards, ----------------------- Yosuke Iwamatsu NEC Corporation --------------080407020603020609000904 Content-Type: all/allfiles; name="console_other_config.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="console_other_config.patch" XM/XenAPI: Enable Console other_config parameters to be passed through Xen API. Signed-off-by: Yosuke Iwamatsu diff -r cc953475ab14 tools/python/xen/xm/xenapi_create.py --- a/tools/python/xen/xm/xenapi_create.py Tue May 06 16:20:54 2008 +0100 +++ b/tools/python/xen/xm/xenapi_create.py Wed May 07 16:15:56 2008 +0900 @@ -485,9 +485,9 @@ class xenapi_create: vm_ref, "protocol": console.attributes["protocol"].value, - "other_params": + "other_config": get_child_nodes_as_dict(console, - "other_param", "key", "value") + "other_config", "key", "value") } return server.xenapi.console.create(console_record) --------------080407020603020609000904 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------080407020603020609000904--