diff --git a/docs/images/cb-tb-call-core-mcis.svg b/docs/images/cb-tb-call-core-mcis.svg index 73f19c233..915b89b2b 100644 --- a/docs/images/cb-tb-call-core-mcis.svg +++ b/docs/images/cb-tb-call-core-mcis.svg @@ -3973,71 +3973,71 @@ - + -github.com/cloud-barista/cb-tumblebug/src/core/mcis.CorePostMcisVm +github.com/cloud-barista/cb-tumblebug/src/core/mcis.CreateMcisVm -CorePostMcisVm +CreateMcisVm - + -github.com/cloud-barista/cb-tumblebug/src/core/mcis.CorePostMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/common.CheckString +github.com/cloud-barista/cb-tumblebug/src/core/mcis.CreateMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/common.CheckString - + -github.com/cloud-barista/cb-tumblebug/src/core/mcis.CorePostMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/common.GenMcisKey +github.com/cloud-barista/cb-tumblebug/src/core/mcis.CreateMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/common.GenMcisKey - + -github.com/cloud-barista/cb-tumblebug/src/core/mcis.CorePostMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/mcis.GetMcisObject +github.com/cloud-barista/cb-tumblebug/src/core/mcis.CreateMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/mcis.GetMcisObject - + -github.com/cloud-barista/cb-tumblebug/src/core/mcis.CorePostMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/mcis.AddVmToMcis +github.com/cloud-barista/cb-tumblebug/src/core/mcis.CreateMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/mcis.AddVmToMcis - + -github.com/cloud-barista/cb-tumblebug/src/core/mcis.CorePostMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/common.PrintJsonPretty +github.com/cloud-barista/cb-tumblebug/src/core/mcis.CreateMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/common.PrintJsonPretty - + -github.com/cloud-barista/cb-tumblebug/src/core/mcis.CorePostMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/mcis.GetVmStatus +github.com/cloud-barista/cb-tumblebug/src/core/mcis.CreateMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/mcis.GetVmStatus - + -github.com/cloud-barista/cb-tumblebug/src/core/mcis.CorePostMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/mcis.CheckDragonflyEndpoint +github.com/cloud-barista/cb-tumblebug/src/core/mcis.CreateMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/mcis.CheckDragonflyEndpoint - + -github.com/cloud-barista/cb-tumblebug/src/core/mcis.CorePostMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/mcis.InstallMonitorAgentToMcis +github.com/cloud-barista/cb-tumblebug/src/core/mcis.CreateMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/mcis.InstallMonitorAgentToMcis - + -github.com/cloud-barista/cb-tumblebug/src/core/mcis.CorePostMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/mcis.CheckVm +github.com/cloud-barista/cb-tumblebug/src/core/mcis.CreateMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/mcis.CheckVm - + -github.com/cloud-barista/cb-tumblebug/src/core/mcis.CorePostMcisVm->(*github.com/sirupsen/logrus.Logger).Error +github.com/cloud-barista/cb-tumblebug/src/core/mcis.CreateMcisVm->(*github.com/sirupsen/logrus.Logger).Error @@ -4048,9 +4048,9 @@ mcis RestPostMcisVm - + -github.com/cloud-barista/cb-tumblebug/src/api/rest/server/mcis.RestPostMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/mcis.CorePostMcisVm +github.com/cloud-barista/cb-tumblebug/src/api/rest/server/mcis.RestPostMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/mcis.CreateMcisVm @@ -6028,9 +6028,9 @@ - + -github.com/cloud-barista/cb-tumblebug/src/core/mcis.OrchestrationController->github.com/cloud-barista/cb-tumblebug/src/core/mcis.CorePostMcisVm +github.com/cloud-barista/cb-tumblebug/src/core/mcis.OrchestrationController->github.com/cloud-barista/cb-tumblebug/src/core/mcis.CreateMcisVm @@ -6529,9 +6529,9 @@ mcis CreateMcisVM - + -(*github.com/cloud-barista/cb-tumblebug/src/api/grpc/server/mcis.MCISService).CreateMcisVM->github.com/cloud-barista/cb-tumblebug/src/core/mcis.CorePostMcisVm +(*github.com/cloud-barista/cb-tumblebug/src/api/grpc/server/mcis.MCISService).CreateMcisVM->github.com/cloud-barista/cb-tumblebug/src/core/mcis.CreateMcisVm diff --git a/docs/images/cb-tb-call-rest-mcis.svg b/docs/images/cb-tb-call-rest-mcis.svg index 7f14a7047..61529fdb4 100644 --- a/docs/images/cb-tb-call-rest-mcis.svg +++ b/docs/images/cb-tb-call-rest-mcis.svg @@ -1090,16 +1090,16 @@ - + -github.com/cloud-barista/cb-tumblebug/src/core/mcis.CorePostMcisVm +github.com/cloud-barista/cb-tumblebug/src/core/mcis.CreateMcisVm mcis -CorePostMcisVm +CreateMcisVm - + -github.com/cloud-barista/cb-tumblebug/src/api/rest/server/mcis.RestPostMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/mcis.CorePostMcisVm +github.com/cloud-barista/cb-tumblebug/src/api/rest/server/mcis.RestPostMcisVm->github.com/cloud-barista/cb-tumblebug/src/core/mcis.CreateMcisVm diff --git a/src/api/grpc/server/mcis/control.go b/src/api/grpc/server/mcis/control.go index 1ea37aef9..43b50cab1 100644 --- a/src/api/grpc/server/mcis/control.go +++ b/src/api/grpc/server/mcis/control.go @@ -236,7 +236,7 @@ func (s *MCISService) CreateMcisVM(ctx context.Context, req *pb.TbVmCreateReques return nil, gc.ConvGrpcStatusErr(err, "", "MCISService.CreateMcisVM()") } - result, err := mcis.CorePostMcisVm(req.NsId, req.McisId, &mcisObj) + result, err := mcis.CreateMcisVm(req.NsId, req.McisId, &mcisObj) if err != nil { return nil, gc.ConvGrpcStatusErr(err, "", "MCISService.CreateMcisVM()") } diff --git a/src/core/mcis/orchestration.go b/src/core/mcis/orchestration.go index 7faa7a221..745f3a4cf 100644 --- a/src/core/mcis/orchestration.go +++ b/src/core/mcis/orchestration.go @@ -315,7 +315,7 @@ func OrchestrationController() { // ScaleOut MCIS according to the VM requirement. fmt.Println("[Generating VM]") - result, vmCreateErr := CorePostMcisVm(nsId, mcisPolicyTmp.Id, &autoAction.Vm) + result, vmCreateErr := CreateMcisVm(nsId, mcisPolicyTmp.Id, &autoAction.Vm) if vmCreateErr != nil { mcisPolicyTmp.Policy[policyIndex].Status = AutoStatusError UpdateMcisPolicyInfo(nsId, mcisPolicyTmp) diff --git a/src/core/mcis/provisioning.go b/src/core/mcis/provisioning.go index c4fe9b756..e039f10cc 100644 --- a/src/core/mcis/provisioning.go +++ b/src/core/mcis/provisioning.go @@ -511,8 +511,8 @@ type TbVmRecommendInfo struct { // MCIS and VM Provisioning -// CorePostMcisVm is func to post (create) McisVm -func CorePostMcisVm(nsId string, mcisId string, vmInfoData *TbVmInfo) (*TbVmInfo, error) { +// CreateMcisVm is func to post (create) McisVm +func CreateMcisVm(nsId string, mcisId string, vmInfoData *TbVmInfo) (*TbVmInfo, error) { err := common.CheckString(nsId) if err != nil {