diff options
Diffstat (limited to 'python')
| -rwxr-xr-x | python/vyos/firewall.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/vyos/firewall.py b/python/vyos/firewall.py index dc1502b7c..ec95c5aaf 100755 --- a/python/vyos/firewall.py +++ b/python/vyos/firewall.py @@ -549,6 +549,9 @@ def parse_rule(rule_conf, hook, fw_name, rule_id, ip_name): log_snaplen = rule_conf['log_options']['snapshot_length'] output.append(f'snaplen {log_snaplen}') + if 'last_used' in rule_conf: + output.append(f'last') + output.append('counter') if 'add_address_to_group' in rule_conf: |
