mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-01 19:00:35 +08:00
单个节点支持多个DNS线路
This commit is contained in:
@@ -8,6 +8,7 @@ import "model_node_login.proto";
|
||||
import "model_node_install_status.proto";
|
||||
import "model_node_ip_address.proto";
|
||||
import "model_node_group.proto";
|
||||
import "model_dns_route.proto";
|
||||
|
||||
message Node {
|
||||
int64 id = 1;
|
||||
@@ -24,6 +25,7 @@ message Node {
|
||||
int32 maxCPU = 12;
|
||||
bool isOn = 13;
|
||||
bool isUp = 14;
|
||||
repeated DNSRoute dnsRoutes = 15;
|
||||
|
||||
NodeCluster cluster = 32;
|
||||
NodeLogin login = 33;
|
||||
|
||||
@@ -108,7 +108,7 @@ message CreateNodeRequest {
|
||||
NodeLogin Login = 3;
|
||||
int64 groupId = 4;
|
||||
int64 dnsDomainId = 5;
|
||||
string dnsRoute = 6;
|
||||
repeated string dnsRoutes = 6;
|
||||
}
|
||||
|
||||
message CreateNodeResponse {
|
||||
@@ -169,6 +169,8 @@ message UpdateNodeRequest {
|
||||
int32 maxCPU = 5;
|
||||
bool isOn = 6;
|
||||
int64 groupId = 7;
|
||||
int64 dnsDomainId = 8;
|
||||
repeated string dnsRoutes = 9;
|
||||
}
|
||||
|
||||
// 查找节点
|
||||
@@ -344,7 +346,7 @@ message NodeDNSInfo {
|
||||
int64 id = 1;
|
||||
string name = 2;
|
||||
string ipAddr = 3;
|
||||
DNSRoute route = 4;
|
||||
repeated DNSRoute routes = 4;
|
||||
int64 clusterId = 5;
|
||||
int64 dnsDomainId = 6;
|
||||
string dnsDomainName = 7;
|
||||
@@ -364,5 +366,5 @@ message UpdateNodeDNSRequest {
|
||||
int64 nodeId = 1;
|
||||
string ipAddr = 2;
|
||||
int64 dnsDomainId = 3;
|
||||
string route = 4;
|
||||
repeated string routes = 4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user