• 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
..
docs Loading commit data...
scripts Loading commit data...
.gitignore Loading commit data...
a_add_manual.sh Loading commit data...
a_check_ip.sh Loading commit data...
a_del_manual.sh Loading commit data...
a_get_net.sh Loading commit data...
both_provs.sh Loading commit data...
check-vpn-status.sh Loading commit data...
check_connectivity.sh Loading commit data...
collect-googlevideo.sh Loading commit data...
egw_add_manual.sh Loading commit data...
egw_del_manual.sh Loading commit data...
fetch_antifilter.download.sh Loading commit data...
fetch_antifilter.network.sh Loading commit data...
fetch_lists.sh Loading commit data...
functions Loading commit data...
get_ip6s_egw.sh Loading commit data...
get_ip6s_z-i.sh Loading commit data...
get_ips_egw.sh Loading commit data...
get_ips_z-i.sh Loading commit data...
get_traffic.sh Loading commit data...
ogw_del_manual.sh Loading commit data...
only_ekvant.sh Loading commit data...
only_prometey.sh Loading commit data...
restart_check_connectivity.sh Loading commit data...
route-health.service Loading commit data...
route-health.sh Loading commit data...
route-health.timer Loading commit data...
route-stats-metrics.sh Loading commit data...
route-update.md Loading commit data...
route-update.service Loading commit data...
route-update.sh Loading commit data...
route-update.timer Loading commit data...
route-web-api.md Loading commit data...
route-web-api.py Loading commit data...
route-web-api.service Loading commit data...
set_hop.sh Loading commit data...
switch_back.sh Loading commit data...
switch_to_yota.sh Loading commit data...
transmission.sh Loading commit data...
update_egw.sh Loading commit data...
update_egw6.sh Loading commit data...
update_z-i-stop.sh Loading commit data...
update_z-i.sh Loading commit data...
update_z-i6.sh Loading commit data...
vpnc-script-minimal.sh Loading commit data...