aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGurucharan Shetty <gshetty@nicira.com>2013-03-25 08:41:18 -0700
committerGurucharan Shetty <gshetty@nicira.com>2013-03-25 15:14:59 -0700
commit74a3c102eaf45a39e145a2a8707cde30ed500951 (patch)
tree210615c525b0fca1a3c199d8ea007c095e8e5a19
parentf2cdc0088bcf7e049cdc4b20b37cc0be47ec8d02 (diff)
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 <gshetty@nicira.com>
-rwxr-xr-xutilities/bugtool/ovs-bugtool.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/utilities/bugtool/ovs-bugtool.in b/utilities/bugtool/ovs-bugtool.in
index 4be46582..b0f03716 100755
--- a/utilities/bugtool/ovs-bugtool.in
+++ b/utilities/bugtool/ovs-bugtool.in
@@ -586,7 +586,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')