From a4fff9cc390b69bde1257b414212505a72c4b450 Mon Sep 17 00:00:00 2001 From: Gurucharan Shetty Date: Wed, 10 Jul 2013 09:42:37 -0700 Subject: [PATCH] ovs-bugtool: Add ovsdb-server/list-dbs command to bugtool. Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff --- utilities/bugtool/automake.mk | 1 + utilities/bugtool/ovs-bugtool-list-dbs | 19 +++++++++++++++++++ .../plugins/network-status/openvswitch.xml | 1 + xenserver/README | 5 +++++ 4 files changed, 26 insertions(+) create mode 100755 utilities/bugtool/ovs-bugtool-list-dbs 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 @@ /usr/share/openvswitch/scripts/ovs-bugtool-ovs-ofctl-show /usr/share/openvswitch/scripts/ovs-bugtool-ovs-ofctl-dump-flows /usr/share/openvswitch/scripts/ovs-bugtool-ovs-appctl-dpif + /usr/share/openvswitch/scripts/ovs-bugtool-list-dbs 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 -- 2.43.0