From ad7e36be54c00ca1a7adc1b58d72e778931436e7 Mon Sep 17 00:00:00 2001 From: l0crian1 Date: Sat, 1 Aug 2026 12:08:15 -0400 Subject: 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 --- python/vyos/firewall.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python') 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: -- cgit v1.2.3