mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-23 18:00:27 +08:00
可以在创建、修改节点的时候选择分组,可以根据分组筛选节点
This commit is contained in:
@@ -42,6 +42,7 @@ func (this *CreateBatchAction) RunGet(params struct {
|
||||
|
||||
func (this *CreateBatchAction) RunPost(params struct {
|
||||
ClusterId int64
|
||||
GroupId int64
|
||||
IpList string
|
||||
|
||||
Must *actions.Must
|
||||
@@ -76,6 +77,7 @@ func (this *CreateBatchAction) RunPost(params struct {
|
||||
resp, err := this.RPC().NodeRPC().CreateNode(this.AdminContext(), &pb.CreateNodeRequest{
|
||||
Name: ip,
|
||||
ClusterId: params.ClusterId,
|
||||
GroupId: params.GroupId,
|
||||
Login: nil,
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user