2021-11-04 23:02:10 +01:00
|
|
|
syntax = "proto3";
|
|
|
|
package headscale.v1;
|
|
|
|
option go_package = "github.com/juanfont/headscale/gen/go/v1";
|
|
|
|
|
2022-11-25 18:50:12 +01:00
|
|
|
import "google/protobuf/timestamp.proto";
|
2023-09-24 13:42:05 +02:00
|
|
|
import "headscale/v1/node.proto";
|
2022-11-25 18:50:12 +01:00
|
|
|
|
|
|
|
message Route {
|
2024-02-18 23:22:07 +01:00
|
|
|
uint64 id = 1;
|
|
|
|
Node node = 2;
|
|
|
|
string prefix = 3;
|
|
|
|
bool advertised = 4;
|
|
|
|
bool enabled = 5;
|
|
|
|
bool is_primary = 6;
|
2022-11-25 18:50:12 +01:00
|
|
|
|
|
|
|
google.protobuf.Timestamp created_at = 7;
|
|
|
|
google.protobuf.Timestamp updated_at = 8;
|
|
|
|
google.protobuf.Timestamp deleted_at = 9;
|
2021-11-04 23:02:10 +01:00
|
|
|
}
|
|
|
|
|
2022-11-25 18:50:12 +01:00
|
|
|
message GetRoutesRequest {
|
2021-11-04 23:02:10 +01:00
|
|
|
}
|
|
|
|
|
2022-11-25 18:50:12 +01:00
|
|
|
message GetRoutesResponse {
|
|
|
|
repeated Route routes = 1;
|
2021-11-04 23:02:10 +01:00
|
|
|
}
|
|
|
|
|
2022-11-25 18:50:12 +01:00
|
|
|
message EnableRouteRequest {
|
|
|
|
uint64 route_id = 1;
|
2021-11-04 23:02:10 +01:00
|
|
|
}
|
|
|
|
|
2022-11-25 18:50:12 +01:00
|
|
|
message EnableRouteResponse {
|
2021-11-04 23:02:10 +01:00
|
|
|
}
|
2022-11-25 18:50:12 +01:00
|
|
|
|
|
|
|
message DisableRouteRequest {
|
|
|
|
uint64 route_id = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DisableRouteResponse {
|
|
|
|
}
|
|
|
|
|
2023-09-24 13:42:05 +02:00
|
|
|
message GetNodeRoutesRequest {
|
|
|
|
uint64 node_id = 1;
|
2022-11-25 18:50:12 +01:00
|
|
|
}
|
|
|
|
|
2023-09-24 13:42:05 +02:00
|
|
|
message GetNodeRoutesResponse {
|
2022-11-25 18:50:12 +01:00
|
|
|
repeated Route routes = 1;
|
2023-03-06 09:05:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteRouteRequest {
|
|
|
|
uint64 route_id = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteRouteResponse {
|
|
|
|
}
|