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-api

[Xen-API] [PATCH] CA-27648: xe does not show the tags fields --- FIXED

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH] CA-27648: xe does not show the tags fields --- FIXED
From: Rok Strnisa <rok.strnisa@xxxxxxxxxx>
Date: Wed, 15 Sep 2010 14:30:38 +0100
Delivery-date: Wed, 15 Sep 2010 06:31:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.4.3
Added the ability to read and write tags on pool, host, network, VM, SR, and
VDI through the CLI. For each corresponding function, the patch adds four
lines of the general form:

        make_field ~name:"tags"
                ~get:(fun () -> String.concat ", " (x ()).API.xxx_tags)
                ~get_set:(fun () -> (x ()).API.xxx_tags)
                ~add_to_set:(fun tag -> Client.Xxx.add_tags rpc session_id xx 
tag)
                ~remove_from_set:(fun tag -> Client.Xxx.remove_tags rpc 
session_id xx tag) ();

The patch also includes code re-indentation for the functions involved.

It appears as if much of this file could be auto-generated.

Signed-off-by: Rok Strnisa <rok.strnisa@xxxxxxxxxx>


 ocaml/client_records/records.ml |  643 ++++++++++++++++++++-------------------
 1 files changed, 334 insertions(+), 309 deletions(-)


Attachment: xen-api.hg.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] CA-27648: xe does not show the tags fields --- FIXED, Rok Strnisa <=