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] Advertise which network backend is in use in DB

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] Advertise which network backend is in use in DB
From: Rob Hoes <rob.hoes@xxxxxxxxxx>
Date: Thu, 1 Jul 2010 15:07:00 +0100
Delivery-date: Thu, 01 Jul 2010 07:08:45 -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>
Advertise which network backend is in use in DB

For clients to determine which network backend is in use a key 
"network_backend" is added to the Host.software_version map on each host. The 
value of this key can be (same as the contents of /var/xensource/network.conf):

    * bridge: the Linux bridging backend is in use;
    * openvswitch: the Open vSwitch backend is in use.

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

diff -r 06ea64bf2676 ocaml/xapi/create_misc.ml
--- a/ocaml/xapi/create_misc.ml
+++ b/ocaml/xapi/create_misc.ml
@@ -373,6 +373,7 @@
        "linux", info.linux_verstring;
        "xencenter_min", Xapi_globs.xencenter_min_verstring;
        "xencenter_max", Xapi_globs.xencenter_max_verstring;
+       "network_backend", Netdev.string_of_kind Netdev.network.Netdev.kind;
        ] @
        (option_to_list "oem_manufacturer" info.oem_manufacturer) @
        (option_to_list "oem_model" info.oem_model) @

Attachment: advertise-netw-backend
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] Advertise which network backend is in use in DB, Rob Hoes <=