[ovs-dev] xenserver: Only show ovs-brcompatd status in xsconsole for XS 5.5.0
Ian Campbell
Ian.Campbell at citrix.com
Tue Mar 30 08:34:42 UTC 2010
I've been commenting those two lines out in my local patch queue for a
while now, pending my finding a minute to cook up a proper fix. Thanks
for beating me to it ;-)
Ian.
On Mon, 2010-03-29 at 22:32 +0100, Justin Pettit wrote:
> ---
> ..._lib_xsconsole_plugins-base_XSFeatureVSwitch.py | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py b/xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py
> index e75a17d..8adb936 100644
> --- a/xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py
> +++ b/xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py
> @@ -298,8 +298,12 @@ class XSFeatureVSwitch:
> VSwitchService.Inst("openvswitch", "ovs-vswitchd").status())
> inPane.AddStatusField(Lang("ovsdb-server status", 20),
> VSwitchService.Inst("openvswitch", "ovsdb-server").status())
> - inPane.AddStatusField(Lang("ovs-brcompatd status", 20),
> - VSwitchService.Inst("openvswitch", "ovs-brcompatd").status())
> +
> + # Only XenServer 5.5.0 runs ovs-brcompatd
> + xs_version = data.host.software_version.product_version('')
> + if (xs_version == "5.5.0"):
> + inPane.AddStatusField(Lang("ovs-brcompatd status", 20),
> + VSwitchService.Inst("openvswitch", "ovs-brcompatd").status())
>
> inPane.AddKeyHelpField( {
> Lang("<Enter>") : Lang("Reconfigure"),
More information about the dev
mailing list