From 271c896ee455422992f8717f5c715ae8522c4000 Mon Sep 17 00:00:00 2001 From: Arun Sharma Date: Tue, 8 May 2012 23:47:30 -0700 Subject: [PATCH] bugtool: Collect bond state information from ovs. This is an enhancement in bugtool archive output to determine the bond state information. It is implemented as a plugin which internally calls "ovs-appctl bond/show" command to get bond state. Feature #11283. Signed-off-by: Arun Sharma Signed-off-by: Ben Pfaff --- utilities/bugtool/automake.mk | 3 ++- utilities/bugtool/ovs-bugtool-bond-show | 19 +++++++++++++++++++ .../plugins/network-status/openvswitch.xml | 1 + xenserver/README | 1 + 4 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 utilities/bugtool/ovs-bugtool-bond-show diff --git a/utilities/bugtool/automake.mk b/utilities/bugtool/automake.mk index 676a5a268..c09380d99 100644 --- a/utilities/bugtool/automake.mk +++ b/utilities/bugtool/automake.mk @@ -18,7 +18,8 @@ bugtool_scripts = \ utilities/bugtool/ovs-bugtool-tc-class-show \ utilities/bugtool/ovs-bugtool-vsctl-show \ utilities/bugtool/ovs-bugtool-ovsdb-dump \ - utilities/bugtool/ovs-bugtool-daemons-ver + utilities/bugtool/ovs-bugtool-daemons-ver \ + utilities/bugtool/ovs-bugtool-bond-show scripts_SCRIPTS += $(bugtool_scripts) bugtoolpluginsdir = $(pkgdatadir)/bugtool-plugins diff --git a/utilities/bugtool/ovs-bugtool-bond-show b/utilities/bugtool/ovs-bugtool-bond-show new file mode 100755 index 000000000..86ec97f58 --- /dev/null +++ b/utilities/bugtool/ovs-bugtool-bond-show @@ -0,0 +1,19 @@ +#! /bin/sh + +# This library is free software; you can redistribute it and/or +# modify it under the terms of version 2.1 of the GNU Lesser General +# Public License as published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA +# +# Copyright (C) 2012 Nicira, Inc. + +ovs-appctl bond/show diff --git a/utilities/bugtool/plugins/network-status/openvswitch.xml b/utilities/bugtool/plugins/network-status/openvswitch.xml index 8ae498faf..952c6569c 100644 --- a/utilities/bugtool/plugins/network-status/openvswitch.xml +++ b/utilities/bugtool/plugins/network-status/openvswitch.xml @@ -23,4 +23,5 @@ /usr/share/openvswitch/scripts/ovs-bugtool-lacp-show /usr/share/openvswitch/scripts/ovs-bugtool-cfm-show /usr/share/openvswitch/scripts/ovs-bugtool-coverage-show + /usr/share/openvswitch/scripts/ovs-bugtool-bond-show diff --git a/xenserver/README b/xenserver/README index 5413c67ac..e72655f77 100644 --- a/xenserver/README +++ b/xenserver/README @@ -85,6 +85,7 @@ debugging. The sources for the extensions are in * ovs-bugtool-lcap-show * ovs-bugtool-ovsdb-dump * ovs-bugtool-tc-class-show + * ovs-bugtool-bond-show system-configuration/openvswitch.xml -- 2.43.0