Skip to content

Commit

Permalink
ovs-bugtool: Add fdb output for all bridges
Browse files Browse the repository at this point in the history
Fdb entries can provide useful information. Collect them in bugtool.

Signed-off-by: Andy Zhou <[email protected]>
  • Loading branch information
azhou-nicira committed Oct 9, 2014
1 parent 5aca332 commit 24adf5d
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions utilities/bugtool/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
24 changes: 24 additions & 0 deletions utilities/bugtool/ovs-bugtool-fdb-show
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions utilities/bugtool/plugins/network-status/openvswitch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<command label="tc-class-show" filters="ovs">/usr/share/openvswitch/scripts/ovs-bugtool-tc-class-show</command>
<command label="ovs-vsctl-show" filters="ovs">/usr/share/openvswitch/scripts/ovs-bugtool-vsctl-show</command>
<command label="dump-ovsdb" filters="ovs">/usr/share/openvswitch/scripts/ovs-bugtool-ovsdb-dump</command>
<command label="ovs-appctl-fdb-show" filters="ovs">/usr/share/openvswitch/scripts/ovs-bugtool-fdb-show</command>
<command label="ovs-appctl-lacp-show" filters="ovs">/usr/share/openvswitch/scripts/ovs-bugtool-lacp-show</command>
<command label="ovs-appctl-cfm-show" filters="ovs">/usr/share/openvswitch/scripts/ovs-bugtool-cfm-show</command>
<command label="ovs-appctl-bfd-show" filters="ovs">/usr/share/openvswitch/scripts/ovs-bugtool-bfd-show</command>
Expand Down
5 changes: 5 additions & 0 deletions xenserver/README
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ debugging. The sources for the extensions are in

* ovs-bugtool-bfd-show
* ovs-bugtool-cfm-show
* ovs-bugtool-fdb-show
* ovs-bugtool-lacp-show
* ovs-bugtool-list-dbs
* ovs-bugtool-ovsdb-dump
Expand Down Expand Up @@ -121,6 +122,10 @@ scripts are located in ../utilities/bugtool:

Script to dump detailed CFM information for all enabled interfaces.

ovs-bugtool-fdb-show

Script to collect a summary of learned MACs for each bridge.

ovs-bugtool-lacp-show

Script to dump detailed LACP information for all enabled ports.
Expand Down

0 comments on commit 24adf5d

Please sign in to comment.