From 24adf5d6842b30006d35759b475fd15666670b5e Mon Sep 17 00:00:00 2001 From: Andy Zhou Date: Wed, 8 Oct 2014 17:15:42 -0700 Subject: ovs-bugtool: Add fdb output for all bridges Fdb entries can provide useful information. Collect them in bugtool. Signed-off-by: Andy Zhou --- utilities/bugtool/automake.mk | 1 + utilities/bugtool/ovs-bugtool-fdb-show | 24 ++++++++++++++++++++++ .../bugtool/plugins/network-status/openvswitch.xml | 1 + 3 files changed, 26 insertions(+) create mode 100755 utilities/bugtool/ovs-bugtool-fdb-show (limited to 'utilities') diff --git a/utilities/bugtool/automake.mk b/utilities/bugtool/automake.mk index 528b72095..36d80cec4 100644 --- a/utilities/bugtool/automake.mk +++ b/utilities/bugtool/automake.mk @@ -17,6 +17,7 @@ bugtool_scripts = \ utilities/bugtool/ovs-bugtool-bfd-show \ utilities/bugtool/ovs-bugtool-cfm-show \ utilities/bugtool/ovs-bugtool-coverage-show \ + utilities/bugtool/ovs-bugtool-fdb-show \ utilities/bugtool/ovs-bugtool-lacp-show \ utilities/bugtool/ovs-bugtool-list-dbs \ utilities/bugtool/ovs-bugtool-memory-show \ diff --git a/utilities/bugtool/ovs-bugtool-fdb-show b/utilities/bugtool/ovs-bugtool-fdb-show new file mode 100755 index 000000000..79baba0e0 --- /dev/null +++ b/utilities/bugtool/ovs-bugtool-fdb-show @@ -0,0 +1,24 @@ +#! /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) 2014 Nicira, Inc. + +for bridge in `ovs-vsctl -- --real list-br` +do + echo "ovs-appctl fdb/show ${bridge}" + ovs-appctl fdb/show "${bridge}" + echo "" +done diff --git a/utilities/bugtool/plugins/network-status/openvswitch.xml b/utilities/bugtool/plugins/network-status/openvswitch.xml index 00247f964..836cd6e69 100644 --- a/utilities/bugtool/plugins/network-status/openvswitch.xml +++ b/utilities/bugtool/plugins/network-status/openvswitch.xml @@ -20,6 +20,7 @@ /usr/share/openvswitch/scripts/ovs-bugtool-tc-class-show /usr/share/openvswitch/scripts/ovs-bugtool-vsctl-show /usr/share/openvswitch/scripts/ovs-bugtool-ovsdb-dump + /usr/share/openvswitch/scripts/ovs-bugtool-fdb-show /usr/share/openvswitch/scripts/ovs-bugtool-lacp-show /usr/share/openvswitch/scripts/ovs-bugtool-cfm-show /usr/share/openvswitch/scripts/ovs-bugtool-bfd-show -- cgit v1.2.1