Fixes GH-2559
This commit is contained in:
parent
a6b34973a8
commit
85aec2e07a
1 changed files with 3 additions and 2 deletions
|
@ -263,10 +263,11 @@ def main():
|
||||||
cmd.append([module.boolean(params['route']), 'route'])
|
cmd.append([module.boolean(params['route']), 'route'])
|
||||||
cmd.append([params['insert'], "insert %s" % params['insert']])
|
cmd.append([params['insert'], "insert %s" % params['insert']])
|
||||||
cmd.append([value])
|
cmd.append([value])
|
||||||
|
cmd.append([params['direction'], "%s" % params['direction']])
|
||||||
|
cmd.append([params['interface'], "on %s" % params['interface']])
|
||||||
cmd.append([module.boolean(params['log']), 'log'])
|
cmd.append([module.boolean(params['log']), 'log'])
|
||||||
|
|
||||||
for (key, template) in [('direction', "%s" ), ('interface', "on %s" ),
|
for (key, template) in [('from_ip', "from %s" ), ('from_port', "port %s" ),
|
||||||
('from_ip', "from %s" ), ('from_port', "port %s" ),
|
|
||||||
('to_ip', "to %s" ), ('to_port', "port %s" ),
|
('to_ip', "to %s" ), ('to_port', "port %s" ),
|
||||||
('proto', "proto %s"), ('app', "app '%s'")]:
|
('proto', "proto %s"), ('app', "app '%s'")]:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue