xenserver: Only show ovs-brcompatd status in xsconsole for XS 5.5.0
authorJustin Pettit <jpettit@nicira.com>
Fri, 26 Mar 2010 23:04:58 +0000 (16:04 -0700)
committerJustin Pettit <jpettit@nicira.com>
Mon, 29 Mar 2010 21:28:54 +0000 (14:28 -0700)
xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py

index e75a17d6319c7948a677ecf9e9eaf7e1b7f6c910..8adb93609d4c88507a600ca0db32f9da7a6e228d 100644 (file)
@@ -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"),