]> xenbits.xensource.com Git - xcp/xen-api.git/commitdiff
Advertise which network backend is in use in DB
authorRob Hoes <rob.hoes@citrix.com>
Thu, 8 Jul 2010 12:01:37 +0000 (13:01 +0100)
committerRob Hoes <rob.hoes@citrix.com>
Thu, 8 Jul 2010 12:01:37 +0000 (13:01 +0100)
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@citrix.com>
ocaml/xapi/create_misc.ml

index 8c480bfb45e2ceefeee60e16e477c651c2658d87..4bc8c5257daf5a7bd9415b22a950e7828c6a5a48 100644 (file)
@@ -373,6 +373,7 @@ let make_software_version () =
        "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) @