diff options
author | Gurucharan Shetty <gshetty@nicira.com> | 2013-03-25 08:41:18 -0700 |
---|---|---|
committer | Gurucharan Shetty <gshetty@nicira.com> | 2013-03-25 15:14:59 -0700 |
commit | 74a3c102eaf45a39e145a2a8707cde30ed500951 (patch) | |
tree | 210615c525b0fca1a3c199d8ea007c095e8e5a19 | |
parent | f2cdc0088bcf7e049cdc4b20b37cc0be47ec8d02 (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-x | utilities/bugtool/ovs-bugtool.in | 3 |
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') |