[ovs-dev] [PATCH 1/3] ovs-bugtool: Add iptables output for all tables.
Ansis Atteka
aatteka at nicira.com
Mon Mar 25 19:46:25 UTC 2013
On Mon, Mar 25, 2013 at 10:56 AM, Gurucharan Shetty <shettyg at nicira.com> wrote:
> Currently we list all the rules only from the 'filter' table.
> Include the rules from all the other tables too.
>
> Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
> ---
> utilities/bugtool/ovs-bugtool.in | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/utilities/bugtool/ovs-bugtool.in b/utilities/bugtool/ovs-bugtool.in
> index 19b3378..ffaf753 100755
> --- a/utilities/bugtool/ovs-bugtool.in
> +++ b/utilities/bugtool/ovs-bugtool.in
> @@ -549,7 +549,8 @@ exclude those logs from the archive.
> cmd_output(CAP_NETWORK_STATUS, [NETSTAT, '-an'])
> for dir in DHCP_LEASE_DIR:
> tree_output(CAP_NETWORK_STATUS, dir)
> - cmd_output(CAP_NETWORK_STATUS, [IPTABLES, '-nL'])
> + for table in ['filter', 'nat', 'mangle', 'raw', 'security']:
> + cmd_output(CAP_NETWORK_STATUS, [IPTABLES, '-t', table, '-nL'])
> for p in os.listdir('/sys/class/net/'):
> try:
> f = open('/sys/class/net/%s/type' % p, 'r')
> --
> 1.7.9.5
Looks good to me.
More information about the dev
mailing list