diff options
| author | John Estabrook <jestabro@vyos.io> | 2026-08-11 10:53:51 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-11 10:53:51 -0500 |
| commit | 7767004a4d2368dd7f9c6b3876f312944a4ce862 (patch) | |
| tree | 167e9f53029562775a04a231ab68b585a9354ccd /python | |
| parent | dadeaf21e70712ecd617ddd4850bc8e9f599a973 (diff) | |
| parent | 66e4cbec33487ce789d0774825f01e830ab8bbf7 (diff) | |
| download | vyos-1x-7767004a4d2368dd7f9c6b3876f312944a4ce862.tar.gz vyos-1x-7767004a4d2368dd7f9c6b3876f312944a4ce862.zip | |
Merge pull request #5365 from l0crian1/last-used
firewall: T8221: Add last-used option to firewall rules
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: |
