ovs-bugtool: Add conntrack output.
authorWilliam Tu <u9012063@gmail.com>
Wed, 13 Jan 2016 23:51:44 +0000 (15:51 -0800)
committerGurucharan Shetty <guru@ovn.org>
Thu, 14 Jan 2016 17:03:22 +0000 (09:03 -0800)
Add a script to show all the connection entries in the tracker.

Signed-off-by: William Tu <u9012063@gmail.com>
Acked-by: Gurucharan Shetty <guru@ovn.org>
utilities/bugtool/automake.mk
utilities/bugtool/ovs-bugtool-conntrack-dump [new file with mode: 0644]
utilities/bugtool/plugins/network-status/openvswitch.xml
xenserver/README

index 36d80ce..b11cf1a 100644 (file)
@@ -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
diff --git a/utilities/bugtool/ovs-bugtool-conntrack-dump b/utilities/bugtool/ovs-bugtool-conntrack-dump
new file mode 100644 (file)
index 0000000..2a72c5a
--- /dev/null
@@ -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
index 836cd6e..bb6792a 100644 (file)
@@ -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>
index 36ea567..87378d0 100644 (file)
@@ -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
 
@@ -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.