Change drop action

The new firewall rule action plugin was setting the rule state as absent
when using the drop "action", this change updates that so we're adding
drop rules and appending them to the rule chain.

Change-Id: I5105c007d890ec98b34eafba3ab410bf9ba4f089
Signed-off-by: Kevin Carter <>
Kevin Carter 2019-12-18 08:35:50 -06:00
parent 4b55d53ba3
commit 8f11437b1c
No known key found for this signature in database
GPG Key ID: CE94BD890A47B20A
1 changed files with 4 additions and 3 deletions

View File

@ -177,11 +177,12 @@ class ActionModule(ActionBase):
action = rule_data['action'] = rule.get('action', 'insert')
if action == 'drop':
rule_data['action'] = 'insert'
rule_data['state'] = 'absent'
rule_data['action'] = 'append'
rule_data['jump'] = rule.get('jump', 'DROP')
rule_data['jump'] = rule.get('jump', 'ACCEPT')
rule_data['chain'] = rule.get('chain', 'INPUT')
rule_data['jump'] = rule.get('jump', 'ACCEPT')
rule_data['protocol'] = rule.get('proto', 'tcp')
if 'table' in rule:
rule_data['table'] = rule['table']