[ovs-dev] xenserver: Only show ovs-brcompatd status in xsconsole for XS 5.5.0
Justin Pettit
jpettit at nicira.com
Mon Mar 29 21:53:44 UTC 2010
This got Ben's blessing over the cube wall. I pushed it, and the previous series of patches.
--Justin
On Mar 29, 2010, at 2:32 PM, Justin Pettit wrote:
> ---
> ..._lib_xsconsole_plugins-base_XSFeatureVSwitch.py | 8 ++++++--
> 1 files changed, 6 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..8adb936 100644
> --- a/xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py
> +++ b/xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py
> @@ -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"),
> --
> 1.7.0.3
>
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev_openvswitch.org
More information about the dev
mailing list