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] Expose PIF.tunnel_access_PIF_of and PIF.tunnel_transpo

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] Expose PIF.tunnel_access_PIF_of and PIF.tunnel_transport_PIF_of in xe CLI
From: Rob Hoes <rob.hoes@xxxxxxxxxx>
Date: Fri, 30 Jul 2010 10:25:05 +0100
Delivery-date: Fri, 30 Jul 2010 02:25:50 -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
# HG changeset patch
# User Rob Hoes <rob.hoes@xxxxxxxxxx>
Expose PIF.tunnel_access_PIF_of and PIF.tunnel_transport_PIF_of in xe CLI

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

diff -r bdc1af7b84b1 ocaml/client_records/records.ml
--- a/ocaml/client_records/records.ml
+++ b/ocaml/client_records/records.ml
@@ -225,6 +225,8 @@
        make_field ~name:"VLAN"         ~get:(fun () -> (Int64.to_string (x 
()).API.pIF_VLAN)) ();
        make_field ~name:"bond-master-of" ~get:(fun () -> String.concat "; " 
(List.map (fun pif -> get_uuid_from_ref pif) (x ()).API.pIF_bond_master_of)) ();
        make_field ~name:"bond-slave-of"  ~get:(fun () -> get_uuid_from_ref (x 
()).API.pIF_bond_slave_of) ();
+       make_field ~name:"tunnel-access-PIF-of" ~get:(fun () -> String.concat 
"; " (List.map (fun pif -> get_uuid_from_ref pif) (x 
()).API.pIF_tunnel_access_PIF_of)) ();
+       make_field ~name:"tunnel-transport-PIF-of"  ~get:(fun () -> 
String.concat "; " (List.map (fun pif -> get_uuid_from_ref pif) (x 
()).API.pIF_tunnel_transport_PIF_of)) ();
        make_field ~name:"management"   ~get:(fun () -> string_of_bool ((x 
()).API.pIF_management)) ();
        make_field ~name:"network-uuid" ~get:(fun () -> try get_uuid_from_ref 
(x ()).API.pIF_network with _ -> nid) ();
        make_field ~name:"network-name-label" ~get:(fun () -> try 
get_name_from_ref (x ()).API.pIF_network with _ -> nid) ();

Attachment: chin-expose-PIF-tunnel-fields-in-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] Expose PIF.tunnel_access_PIF_of and PIF.tunnel_transport_PIF_of in xe CLI, Rob Hoes <=