From fcadd13538a07c7c98f3a83edf4dd27242794e94 Mon Sep 17 00:00:00 2001 From: William Tu Date: Wed, 13 Jan 2016 15:51:44 -0800 Subject: [PATCH] ovs-bugtool: Add conntrack output. Add a script to show all the connection entries in the tracker. Signed-off-by: William Tu Acked-by: Gurucharan Shetty --- utilities/bugtool/automake.mk | 4 +++- utilities/bugtool/ovs-bugtool-conntrack-dump | 19 +++++++++++++++++++ .../plugins/network-status/openvswitch.xml | 1 + xenserver/README | 5 +++++ 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 utilities/bugtool/ovs-bugtool-conntrack-dump diff --git a/utilities/bugtool/automake.mk b/utilities/bugtool/automake.mk index 36d80cec4..b11cf1a47 100644 --- a/utilities/bugtool/automake.mk +++ b/utilities/bugtool/automake.mk @@ -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 index 000000000..2a72c5aaf --- /dev/null +++ b/utilities/bugtool/ovs-bugtool-conntrack-dump @@ -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 diff --git a/utilities/bugtool/plugins/network-status/openvswitch.xml b/utilities/bugtool/plugins/network-status/openvswitch.xml index 836cd6e69..bb6792a6f 100644 --- a/utilities/bugtool/plugins/network-status/openvswitch.xml +++ b/utilities/bugtool/plugins/network-status/openvswitch.xml @@ -24,6 +24,7 @@ /usr/share/openvswitch/scripts/ovs-bugtool-lacp-show /usr/share/openvswitch/scripts/ovs-bugtool-cfm-show /usr/share/openvswitch/scripts/ovs-bugtool-bfd-show + /usr/share/openvswitch/scripts/ovs-bugtool-conntrack-dump /usr/share/openvswitch/scripts/ovs-bugtool-coverage-show /usr/share/openvswitch/scripts/ovs-bugtool-bond-show /usr/share/openvswitch/scripts/ovs-bugtool-memory-show diff --git a/xenserver/README b/xenserver/README index 36ea567f6..87378d07c 100644 --- a/xenserver/README +++ b/xenserver/README @@ -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. -- 2.20.1