From: Gurucharan Shetty <gshetty@nicira.com>
Date: Wed, 10 Jul 2013 16:42:37 +0000 (-0700)
Subject: ovs-bugtool: Add ovsdb-server/list-dbs command to bugtool.
X-Git-Tag: sliver-openvswitch-2.0.90-1~36^2~55
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a4fff9cc390b69bde1257b414212505a72c4b450;p=sliver-openvswitch.git

ovs-bugtool: Add ovsdb-server/list-dbs command to bugtool.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
---

diff --git a/utilities/bugtool/automake.mk b/utilities/bugtool/automake.mk
index 9d1ff66fc..38768cb00 100644
--- a/utilities/bugtool/automake.mk
+++ b/utilities/bugtool/automake.mk
@@ -17,6 +17,7 @@ bugtool_scripts = \
 	utilities/bugtool/ovs-bugtool-cfm-show \
 	utilities/bugtool/ovs-bugtool-coverage-show \
 	utilities/bugtool/ovs-bugtool-lacp-show \
+	utilities/bugtool/ovs-bugtool-list-dbs \
 	utilities/bugtool/ovs-bugtool-memory-show \
 	utilities/bugtool/ovs-bugtool-tc-class-show \
 	utilities/bugtool/ovs-bugtool-vsctl-show \
diff --git a/utilities/bugtool/ovs-bugtool-list-dbs b/utilities/bugtool/ovs-bugtool-list-dbs
new file mode 100755
index 000000000..28775fa08
--- /dev/null
+++ b/utilities/bugtool/ovs-bugtool-list-dbs
@@ -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) 2013 Nicira, Inc.
+
+ovs-appctl -t ovsdb-server ovsdb-server/list-dbs
diff --git a/utilities/bugtool/plugins/network-status/openvswitch.xml b/utilities/bugtool/plugins/network-status/openvswitch.xml
index d79b4f369..5ca47e603 100644
--- a/utilities/bugtool/plugins/network-status/openvswitch.xml
+++ b/utilities/bugtool/plugins/network-status/openvswitch.xml
@@ -28,4 +28,5 @@
   <command label="ovs-ofctl-show" filters="ovs">/usr/share/openvswitch/scripts/ovs-bugtool-ovs-ofctl-show</command>
   <command label="ovs-ofctl-dump-flows" filters="ovs">/usr/share/openvswitch/scripts/ovs-bugtool-ovs-ofctl-dump-flows</command>
   <command label="ovs-appctl-dpif" filters="ovs">/usr/share/openvswitch/scripts/ovs-bugtool-ovs-appctl-dpif</command>
+  <command label="ovs-appctl-list-dbs" filters="ovs">/usr/share/openvswitch/scripts/ovs-bugtool-list-dbs</command>
 </collect>
diff --git a/xenserver/README b/xenserver/README
index 472159e26..dd49daba7 100644
--- a/xenserver/README
+++ b/xenserver/README
@@ -83,6 +83,7 @@ debugging.  The sources for the extensions are in
 
             * ovs-bugtool-cfm-show
             * ovs-bugtool-lacp-show
+            * ovs-bugtool-list-dbs
             * ovs-bugtool-ovsdb-dump
             * ovs-bugtool-tc-class-show
             * ovs-bugtool-bond-show
@@ -119,6 +120,10 @@ scripts are located in ../utilities/bugtool:
 
         Script to dump detailed LACP information for all enabled ports.
 
+    ovs-bugtool-list-dbs
+
+        Script to list the databases controlled by ovsdb-server.
+
     ovs-bugtool-ovsdb-dump
 
         Script to dump contents of Open vSwitch configuration database