diff options
| author | Brad Kollmyer <bradk@vitalsoft.com> | 2026-07-10 14:54:38 -0700 |
|---|---|---|
| committer | Brad Kollmyer <bradk@vitalsoft.com> | 2026-07-10 16:31:18 -0700 |
| commit | 91850ce83561cdd24f21a0dfa67d0754b0ff5e80 (patch) | |
| tree | b86e45c912b647a195101fbd8e50f6f0542c600d /scripts/cli/test_interfaces_loopback.py | |
| parent | e5e36dd48191cb5194dd541fa91b2d14dd8d9d33 (diff) | |
| download | vyos-1x-91850ce83561cdd24f21a0dfa67d0754b0ff5e80.tar.gz vyos-1x-91850ce83561cdd24f21a0dfa67d0754b0ff5e80.zip | |
firewall: T9076: add per-remote-group update interval
Add 'set firewall group remote-group <name> interval <value>' to
control how often each remote group list is re-downloaded,
independent of the global resolver-interval that also drives
domain-group/FQDN resolution.
The value accepts plain seconds or time-unit suffixes s/m/h/d/w
(e.g. 4h), range 60 seconds to 4 weeks, enforced at commit time
after conversion. When unset, the group keeps following
'firewall global-options resolver-interval', so existing
configurations are unaffected.
vyos-domain-resolver now tracks a last-update timestamp per
remote group and sleeps until the next due update instead of a
fixed resolver-interval tick, honoring per-group intervals both
shorter and longer than the global one. A group is only stamped
as updated after a successful download; failed downloads fall
back to the cached list and are retried at the resolver cadence
rather than after the full group interval.
human_to_seconds() now treats a plain number as seconds instead
of returning 0.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/cli/test_interfaces_loopback.py')
0 files changed, 0 insertions, 0 deletions
