# HG changeset patch
# User Rob Hoes <[email protected]>
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 <[email protected]>

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) @
# HG changeset patch
# User Rob Hoes <[email protected]>
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 <[email protected]>

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) @
_______________________________________________
xen-api mailing list
[email protected]
http://lists.xensource.com/mailman/listinfo/xen-api

Reply via email to