ovs-controller: Document how to use with management protocol.
[openvswitch] / 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"),