[ovs-dev] [PATCH 1/2] ovs-bugtool: Add "ovs-appctl coverage/show" output to bugtool.

Ben Pfaff blp at nicira.com
Fri Apr 27 21:12:56 UTC 2012


This can be useful for diagnosis.

Signed-off-by: Ben Pfaff <blp at nicira.com>
---
I haven't tested this yet.

 utilities/bugtool/automake.mk                      |    1 +
 utilities/bugtool/ovs-bugtool-coverage-show        |   19 +++++++++++++++++++
 .../bugtool/plugins/network-status/openvswitch.xml |    3 ++-
 3 files changed, 22 insertions(+), 1 deletions(-)
 create mode 100755 utilities/bugtool/ovs-bugtool-coverage-show

diff --git a/utilities/bugtool/automake.mk b/utilities/bugtool/automake.mk
index e3ba0ad..e688b3f 100644
--- a/utilities/bugtool/automake.mk
+++ b/utilities/bugtool/automake.mk
@@ -13,6 +13,7 @@ bugtool_plugins = \
 
 bugtool_scripts = \
 	utilities/bugtool/ovs-bugtool-cfm-show \
+	utilities/bugtool/ovs-bugtool-coverage-show \
 	utilities/bugtool/ovs-bugtool-lacp-show \
 	utilities/bugtool/ovs-bugtool-tc-class-show \
 	utilities/bugtool/ovs-bugtool-ovsdb-dump \
diff --git a/utilities/bugtool/ovs-bugtool-coverage-show b/utilities/bugtool/ovs-bugtool-coverage-show
new file mode 100755
index 0000000..4cc55bd
--- /dev/null
+++ b/utilities/bugtool/ovs-bugtool-coverage-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 Networks.
+
+ovs-appctl coverage/show
diff --git a/utilities/bugtool/plugins/network-status/openvswitch.xml b/utilities/bugtool/plugins/network-status/openvswitch.xml
index 42abfad..d34b134 100644
--- a/utilities/bugtool/plugins/network-status/openvswitch.xml
+++ b/utilities/bugtool/plugins/network-status/openvswitch.xml
@@ -13,7 +13,7 @@
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
  USA.
 
- Copyright (C) 2011 Nicira Networks.
+ Copyright (C) 2011, 2012 Nicira Networks.
 -->
 
 <collect>
@@ -21,4 +21,5 @@
   <command label="dump-ovsdb">/usr/share/openvswitch/scripts/ovs-bugtool-ovsdb-dump</command>
   <command label="ovs-lacp-show">/usr/share/openvswitch/scripts/ovs-bugtool-lacp-show</command>
   <command label="ovs-cfm-show">/usr/share/openvswitch/scripts/ovs-bugtool-cfm-show</command>
+  <command label="ovs-coverage-show">/usr/share/openvswitch/scripts/ovs-bugtool-coverage-show</command>
 </collect>
-- 
1.7.2.5




More information about the dev mailing list