Browse code

loop all ebtables tables

ebtables has 3 built in tables, if we don't call them out we only get
'filter' (per man page).

Change-Id: I52360cbb3b910cb492b61e2314848cc29dcd8266

Sean Dague authored on 2015/11/10 04:08:15
Showing 1 changed files
... ...
@@ -86,8 +86,10 @@ def disk_space():
86 86
 
87 87
 
88 88
 def ebtables_dump():
89
+    tables = ['filter', 'nat', 'broute']
89 90
     _header("EB Tables Dump")
90
-    _dump_cmd("sudo ebtables -L")
91
+    for table in tables:
92
+        _dump_cmd("sudo ebtables -t %s -L" % table)
91 93
 
92 94
 
93 95
 def iptables_dump():