From: Gurucharan Shetty Date: Mon, 25 Mar 2013 15:41:18 +0000 (-0700) Subject: ovs-bugtool: Add iptables output for all tables. X-Git-Tag: sliver-openvswitch-1.10.90-1~10^2~37 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=62182ac9faf844df3ef86ef91118be675c3ae71c ovs-bugtool: Add iptables output for all tables. 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 --- diff --git a/utilities/bugtool/ovs-bugtool.in b/utilities/bugtool/ovs-bugtool.in index 19b3378b1..ffaf7538c 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')