Commit Graph

2673 Commits

Author SHA1 Message Date
Juan Font
7d4fbe65ea Port routing CLI to v2 2022-11-28 15:54:23 +00:00
Juan Font
dd48d09812 Merge branch 'rerouting' of https://github.com/juanfont/headscale into rerouting 2022-11-26 11:06:23 +00:00
Juan Font
a9e2179b9f Remove magic number (base10...) 2022-11-26 11:21:25 +01:00
Juan Font
b49e46a4c3 Remove unused function 2022-11-26 11:21:25 +01:00
Juan Font
635027038f Use new routes API in CLI 2022-11-26 11:21:25 +01:00
Juan Font
fad43760ef Refactored route grpc glue code 2022-11-26 11:21:25 +01:00
Juan Font
68d2eaaaa6 Update swagger 2022-11-26 11:21:25 +01:00
Juan Font
cd2d2ef7e5 Updated generated pb code 2022-11-26 11:21:25 +01:00
Juan Font
1ce3d95d95 Updated protos with new routes API 2022-11-26 11:21:25 +01:00
Juan Font
20d599ae34 Add more logging 2022-11-26 11:21:25 +01:00
Juan Font
347d4d0ca5 Add support methods for the API 2022-11-26 11:21:25 +01:00
Juan Font
1d9cd88053 Remove method no longer used 2022-11-26 11:21:25 +01:00
Juan Font
37a031d13e Another bunch of gosec/golint related fixes 2022-11-26 11:21:25 +01:00
Juan Font
b5f1ae3d90 A big bunch of golang-lint fixes 2022-11-26 11:21:25 +01:00
Juan Font
358ed64b98 Run handlePrimarySubnetFailover() with a ticker when Serve 2022-11-26 11:21:25 +01:00
Juan Font
d606b5a21e Added tests for subnet failover 2022-11-26 11:21:25 +01:00
Juan Font
091ade10cf Added method to perform subnet failover 2022-11-26 11:21:25 +01:00
Juan Font
de4e19017f Use helper methods in Machine 2022-11-26 11:21:25 +01:00
Juan Font
5e89794433 Mark as primary the first instance of subnet + tests
In preparation for subnet failover, mark the initial occurrence of a subnet as the primary one.
2022-11-26 11:21:25 +01:00
Juan Font
52ab2a8ffd Port routes tests to new model 2022-11-26 11:21:25 +01:00
Juan Font
cf35ae94d0 Remove EnabledRoutes from Machine and refactor to adapt to it 2022-11-26 11:21:25 +01:00
Juan Font
60be739a3b Call processMachineRoutes when a new Map is received 2022-11-26 11:21:25 +01:00
Juan Font
a76115b9e4 Cleanup route.go and add helper methods to process HostInfo 2022-11-26 11:21:25 +01:00
Juan Font
28ef3145c5 Add migration from Machine.EnabledRoutes to the new Route table 2022-11-26 11:21:25 +01:00
Juan Font
c78403691c Add Route DB model 2022-11-26 11:21:25 +01:00
Juan Font
4da462917c Remove magic number (base10...) 2022-11-26 10:14:48 +00:00
Juan Font
87bfb53c1c Remove unused function 2022-11-26 09:59:56 +00:00
Juan Font
e26e3303cd Use new routes API in CLI 2022-11-26 00:04:02 +00:00
Juan Font
123ace4fb0 Refactored route grpc glue code 2022-11-26 00:03:39 +00:00
Juan Font
4158447547 Update swagger 2022-11-26 00:03:20 +00:00
Juan Font
7e3119be9b Updated generated pb code 2022-11-26 00:03:01 +00:00
Juan Font
0bf41646e9 Updated protos with new routes API 2022-11-26 00:02:40 +00:00
Juan Font
5322373fa1 Add more logging 2022-11-26 00:01:51 +00:00
Juan Font
ecb7dfad15 Add support methods for the API 2022-11-25 17:50:12 +00:00
Juan Font
cffb7ad32f Remove method no longer used 2022-11-25 17:49:46 +00:00
Juan Font
ae3d42805c Another bunch of gosec/golint related fixes 2022-11-25 15:37:10 +00:00
Juan Font
3e85bfa56e A big bunch of golang-lint fixes 2022-11-25 15:29:45 +00:00
Juan Font
d4491bf340 Run handlePrimarySubnetFailover() with a ticker when Serve 2022-11-25 15:11:22 +00:00
Juan Font
03accae98c Added tests for subnet failover 2022-11-25 13:34:56 +00:00
Juan Font
b376f58e0e Added method to perform subnet failover 2022-11-25 13:34:51 +00:00
Juan Font
940dbc7706 Use helper methods in Machine 2022-11-25 13:34:46 +00:00
Juan Font
3da872bb30 Mark as primary the first instance of subnet + tests
In preparation for subnet failover, mark the initial occurrence of a subnet as the primary one.
2022-11-25 13:34:42 +00:00
Juan Font
d71b802d81 Port routes tests to new model 2022-11-25 13:34:37 +00:00
Juan Font
1dcc98fcbb Remove EnabledRoutes from Machine and refactor to adapt to it 2022-11-25 13:34:33 +00:00
Juan Font
ee9e64e57b Call processMachineRoutes when a new Map is received 2022-11-25 13:34:29 +00:00
Juan Font
552f4bf19b Cleanup route.go and add helper methods to process HostInfo 2022-11-25 13:34:24 +00:00
Juan Font
f4519cecf5 Add migration from Machine.EnabledRoutes to the new Route table 2022-11-25 13:34:13 +00:00
github-actions[bot]
91559d0558 docs(README): update contributors 2022-11-25 08:58:13 +01:00
Orville Q. Song
25195b8d73 Update CHANGELOG.md 2022-11-24 16:13:47 +01:00
Orville Q. Song
e69176e200 Tweak 2022-11-24 16:13:47 +01:00