diff options
| author | l0crian1 <ryan.claridge13@gmail.com> | 2026-08-01 12:08:15 -0400 |
|---|---|---|
| committer | l0crian1 <ryan.claridge13@gmail.com> | 2026-08-01 12:08:15 -0400 |
| commit | ad7e36be54c00ca1a7adc1b58d72e778931436e7 (patch) | |
| tree | d41e205067dce3c6e43346b1aeb1b44a343328cc /python | |
| parent | b81e435210f499b225b5d27fd16c370c0095da3a (diff) | |
| download | vyos-1x-ad7e36be54c00ca1a7adc1b58d72e778931436e7.tar.gz vyos-1x-ad7e36be54c00ca1a7adc1b58d72e778931436e7.zip | |
T8221: Add last-used option to firewall rules
- Add last-used option to firewall rules
- Updated output of show firewall to include last-used
- Added smoketest for last-used option
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: |
