|
|
|
@ -848,6 +848,7 @@ def main():
|
|
|
|
|
required_if=[
|
|
|
|
|
['jump', 'TEE', ['gateway']],
|
|
|
|
|
['jump', 'tee', ['gateway']],
|
|
|
|
|
['flush', False, ['chain']],
|
|
|
|
|
]
|
|
|
|
|
)
|
|
|
|
|
args = dict(
|
|
|
|
@ -865,10 +866,6 @@ def main():
|
|
|
|
|
ip_version = module.params['ip_version']
|
|
|
|
|
iptables_path = module.get_bin_path(BINS[ip_version], True)
|
|
|
|
|
|
|
|
|
|
# Check if chain option is required
|
|
|
|
|
if args['flush'] is False and args['chain'] is None:
|
|
|
|
|
module.fail_json(msg="Either chain or flush parameter must be specified.")
|
|
|
|
|
|
|
|
|
|
if module.params.get('log_prefix', None) or module.params.get('log_level', None):
|
|
|
|
|
if module.params['jump'] is None:
|
|
|
|
|
module.params['jump'] = 'LOG'
|
|
|
|
|