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] CP-1589: Expose Pool.restrictions in CLI

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] CP-1589: Expose Pool.restrictions in CLI
From: Rob Hoes <rob.hoes@xxxxxxxxxx>
Date: Fri, 12 Feb 2010 12:41:06 +0000
Delivery-date: Fri, 12 Feb 2010 04:41:02 -0800
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
# HG changeset patch
# User Rob Hoes <rob.hoes@xxxxxxxxxx>
CP-1589: Expose Pool.restrictions in CLI

Signed-off-by: Rob Hoes <rob.hoes@xxxxxxxxxx>

diff -r 05bae5ed3a81 ocaml/client_records/records.ml
--- a/ocaml/client_records/records.ml   Fri Feb 05 11:08:59 2010 +0000
+++ b/ocaml/client_records/records.ml   Fri Feb 05 16:38:54 2010 +0000
@@ -411,7 +411,8 @@
     ~remove_from_map:(fun k -> Client.Pool.remove_from_gui_config rpc 
session_id pool k)
     ~get_map:(fun () -> (x ()).API.pool_gui_config)
     ~expensive:true ();
-  make_field ~name:"vswitch-controller" ~hidden:true ~get:(fun () -> let r = 
(x ()).API.pool_vswitch_controller in if r = "" then "<not set>" else r) ()
+  make_field ~name:"vswitch-controller" ~hidden:true ~get:(fun () -> let r = 
(x ()).API.pool_vswitch_controller in if r = "" then "<not set>" else r) ();
+  make_field ~name:"restrictions" ~get:(fun () -> Record_util.s2sm_to_string 
"; " (x ()).API.pool_restrictions) ();
 ]}
 
 let subject_record rpc session_id subject = 

Attachment: pool-restrictions-cli
Description: Text document

_______________________________________________
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] CP-1589: Expose Pool.restrictions in CLI, Rob Hoes <=