[ovs-dev] [PATCH 2/4] xenserver: Only register xsconsole plugin if OVS is running

Justin Pettit jpettit at nicira.com
Mon Apr 12 06:18:33 UTC 2010


The 5.6.0 XenServer release will include OVS but not have it enabled by
default.  By only registering the xsconsole plugin on systems running OVS,
this plugin can be included in the main distribution.

Based on commit 0ebd737 from the xs5.7 branch written by Ian Campbell.
---
 ..._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 74eb212..252c6e8 100644
--- a/xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py
+++ b/xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py
@@ -327,5 +327,6 @@ class XSFeatureVSwitch:
             }
         )
 
-# Register this plugin when module is imported
-XSFeatureVSwitch().Register()
+# Register this plugin when module is imported, IFF vswitchd is running
+if os.path.exists('/var/run/openvswitch/ovs-vswitchd.pid'):
+    XSFeatureVSwitch().Register()
-- 
1.7.0.3





More information about the dev mailing list