[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] [PATCH] Advertise which network backend is in use in DB


  • To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

# 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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.