2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-21 14:49:41 +00:00

xenserver: Only register xsconsole plugin if OVS is running

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.
This commit is contained in:
Justin Pettit
2010-04-09 00:40:18 -07:00
parent 9d73e170da
commit a7de953d18

View File

@@ -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()