diff --git a/cns/NetworkContainerContract.go b/cns/NetworkContainerContract.go index d2de05bfa4..ae57a204f8 100644 --- a/cns/NetworkContainerContract.go +++ b/cns/NetworkContainerContract.go @@ -573,6 +573,6 @@ type NodeInfoResponse struct { // NodeRegisterRequest - Struct to hold the node register request. type NodeRegisterRequest struct { - NumCPU int + NumCores int NmAgentSupportedApis []string } diff --git a/cns/service/main.go b/cns/service/main.go index a70d27f845..7c5c900415 100644 --- a/cns/service/main.go +++ b/cns/service/main.go @@ -306,7 +306,7 @@ func registerNode(httpc *http.Client, httpRestService cns.HTTPService, dncEP, in nodeRegisterRequest cns.NodeRegisterRequest ) - nodeRegisterRequest.NumCPU = numCPU + nodeRegisterRequest.NumCores = numCPU supportedApis, retErr := nmagent.GetNmAgentSupportedApis(httpc, "") if retErr != nil {