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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user