You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/12/22 08:33:06 UTC

[GitHub] [cloudstack] shwstppr commented on issue #5772: when add BareMetal host, new ui misses 4 parameters: cpu cores, cpu MHz,memory,host mac

shwstppr commented on issue #5772:
URL: https://github.com/apache/cloudstack/issues/5772#issuecomment-999386099


   @utchoang not sure tbh. Checked legacy UI and it passes them as the `addHost` API params. Although the API doesn't have any such params.
   ```
                                       if (selectedClusterObj.hypervisortype == "BareMetal") {
                                           $.extend(data, {
                                               cpunumber: args.data.baremetalCpuCores,
                                               cpuspeed: args.data.baremetalCpu,
                                               memory: args.data.baremetalMemory,
                                               hostmac: args.data.baremetalMAC
                                           });
                                       } else if (selectedClusterObj.hypervisortype == "Ovm") {
                                           $.extend(data, {
                                               agentusername: args.data.agentUsername,
                                               agentpassword: args.data.agentPassword
                                           });
                                       } else if (selectedClusterObj.hypervisortype == "Ovm3") {
                                           $.extend(data, {
                                               agentusername: args.data.agentUsername,
                                               agentpassword: args.data.agentPassword,
                                               agentport: args.data.agentPort
                                          });
                                       }
                                   }
   
                                   var hostId = null;
                                   $.ajax({
                                       url: createURL("addHost"),
                                       type: "POST",
                                       data: data,
                                       success: function (json) {
   ```
   
   there is a `addBaremetalHost` API in code but even that doesn't have these params


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org