[ovs-dev] [PATCH 1/3] xenserver: Don't show ovs-brcompatd status in xsconsole if not running
Justin Pettit
jpettit at nicira.com
Mon Mar 29 20:34:38 UTC 2010
---
..._lib_xsconsole_plugins-base_XSFeatureVSwitch.py | 5 +++--
1 files changed, 3 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..3f509c7 100644
--- a/xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py
+++ b/xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py
@@ -298,8 +298,9 @@ 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())
+ if os.path.isfile("/var/run/openvswitch/ovs-brcompatd.pid"):
+ inPane.AddStatusField(Lang("ovs-brcompatd status", 20),
+ VSwitchService.Inst("openvswitch", "ovs-brcompatd").status())
inPane.AddKeyHelpField( {
Lang("<Enter>") : Lang("Reconfigure"),
--
1.7.0.3
More information about the dev
mailing list