• Vitaly Lipatov's avatar
    route-update: flush table when .list moves between groups · 41bffb6b
    Vitaly Lipatov authored
    When a .list is moved between groups whose `gateway` files differ
    in metric semantics (e.g., failover→multipath), the previous code
    only deleted state and kept the table.  This caused stale routes
    with the old `metric N` to coexist with newly loaded multipath
    routes, because `ip route replace` keyed on dst+metric and treated
    them as distinct entries.
    
    Two related changes:
    - cleanup_state's "moved" branch now flushes the table before the
      new group loads it, so the table starts clean.
    - cleanup_state is invoked before process_routes so the flushes
      happen prior to the new group's load (otherwise a flush after
      load would wipe out the just-installed routes).
    Co-Authored-By: 's avatarClaude Opus 4.7 (1M context) <noreply@anthropic.com>
    41bffb6b
Name
Last commit
Last update
.claude Loading commit data...
.gear Loading commit data...
ansible/playbooks Loading commit data...
auth Loading commit data...
backup Loading commit data...
certs Loading commit data...
check_system Loading commit data...
common Loading commit data...
cyrus Loading commit data...
dc Loading commit data...
dc-client Loading commit data...
ddos Loading commit data...
dns Loading commit data...
docker Loading commit data...
etersoft Loading commit data...
etersoft-cron Loading commit data...
fail2ban Loading commit data...
girar Loading commit data...
git Loading commit data...
gluster Loading commit data...
hdd Loading commit data...
korinf Loading commit data...
mail Loading commit data...
mysql Loading commit data...
nagios Loading commit data...
nginx Loading commit data...
pve Loading commit data...
research Loading commit data...
rooter Loading commit data...
router Loading commit data...
seafile Loading commit data...
tests Loading commit data...
users Loading commit data...
utils Loading commit data...
vz Loading commit data...
web Loading commit data...
zfs-label-tool Loading commit data...
.gitignore Loading commit data...
CLAUDE.md Loading commit data...
TODO Loading commit data...
etersoft-admin-essential.spec Loading commit data...