mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-26 10:14:52 +09:00
436aa298b7
The primary route algorithm now lives in hscontrol/state/node_store.go (snapshotFromNodes / computePrimaries). Move the test coverage that used to live in hscontrol/routes alongside it: primaries_test.go ports the named scenarios (anti-flap, HA failover, recovery-no-flap, exit routes excluded, the issue #3203 both-offline regression) and HANodes, primaries_property_test.go ports the rapid-driven invariant check. Both tests drive the algorithm via NodeStore.UpdateNode rather than the deleted PrimaryRoutes API. With every consumer migrated and the algorithm relocated, the routes package has no remaining users and gets removed. Updates #3203