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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to