git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tweak.
[sfa.git]
/
sfatables
/
commands
/
List.py
diff --git
a/sfatables/commands/List.py
b/sfatables/commands/List.py
index
1c383a1
..
fe44432
100644
(file)
--- a/
sfatables/commands/List.py
+++ b/
sfatables/commands/List.py
@@
-54,6
+54,10
@@
class List(Command):
return rule_list
def call(self, command_options, match_options, target_options):
return rule_list
def call(self, command_options, match_options, target_options):
+ if (len(command_options.args) < 1):
+ print "Please specify the name of the chain you would like to list, e.g. sfatables -L INCOMING."
+ return
+
chain = command_options.args[0]
chain_dir = sfatables_config + "/" + chain
chain = command_options.args[0]
chain_dir = sfatables_config + "/" + chain