Skip to content

Commit

Permalink
ovs-bugtool: Add conntrack output.
Browse files Browse the repository at this point in the history
Add a script to show all the connection entries in the tracker.

Signed-off-by: William Tu <[email protected]>
Acked-by: Gurucharan Shetty <[email protected]>
  • Loading branch information
williamtu authored and shettyg committed Jan 14, 2016
1 parent 5e3a2a1 commit fcadd13
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utilities/bugtool/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ bugtool_scripts = \
utilities/bugtool/ovs-bugtool-ovs-ofctl-show \
utilities/bugtool/ovs-bugtool-ovs-ofctl-dump-flows \
utilities/bugtool/ovs-bugtool-ovs-appctl-dpif \
utilities/bugtool/ovs-bugtool-bond-show
utilities/bugtool/ovs-bugtool-bond-show \
utilities/bugtool/ovs-bugtool-conntrack-dump

scripts_SCRIPTS += $(bugtool_scripts)

bugtoolpluginsdir = $(pkgdatadir)/bugtool-plugins
Expand Down
19 changes: 19 additions & 0 deletions utilities/bugtool/ovs-bugtool-conntrack-dump
Original file line number Diff line number Diff line change
@@ -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) 2016 Nicira, Inc.

ovs-appctl dpctl/dump-conntrack
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 @@ -24,6 +24,7 @@
<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>
<command label="ovs-appctl-conntrack-dump" filters="ovs">/usr/share/openvswitch/scripts/ovs-bugtool-conntrack-dump</command>
<command label="ovs-appctl-coverage-show" filters="ovs">/usr/share/openvswitch/scripts/ovs-bugtool-coverage-show</command>
<command label="ovs-appctl-bond-show" filters="ovs">/usr/share/openvswitch/scripts/ovs-bugtool-bond-show</command>
<command label="ovs-appctl-memory-show" filters="ovs">/usr/share/openvswitch/scripts/ovs-bugtool-memory-show</command>
Expand Down
5 changes: 5 additions & 0 deletions xenserver/README
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ debugging. The sources for the extensions are in
* ovs-bugtool-coverage-show
* ovs-bugtool-memory-show
* ovs-bugtool-vsctl-show
* ovs-bugtool-conntrack-dump

system-configuration/openvswitch.xml

Expand Down Expand Up @@ -168,6 +169,10 @@ scripts are located in ../utilities/bugtool:

Script to show a brief overview of the database contents.

ovs-bugtool-conntrack-dump

Script to show all the connection entries in the tracker.

ovs-bugtool-daemons-ver

Script to dump version information for all Open vSwitch daemons.
Expand Down

0 comments on commit fcadd13

Please sign in to comment.