From 378a58b90ceef380e03a0e5863b4f2c3aa0fe32a Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Fri, 26 Mar 2010 16:04:58 -0700 Subject: [PATCH] xenserver: Only show ovs-brcompatd status in xsconsole for XS 5.5.0 --- .../usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py | 8 ++++++-- 1 file 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 e75a17d6..8adb9360 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("") : Lang("Reconfigure"), -- 2.30.2