mirror of https://github.com/apache/cloudstack.git
make UCS api name better
This commit is contained in:
parent
4be18aefc4
commit
697b7c9471
|
|
@ -609,10 +609,10 @@ listBaremetalPxePingServer=1
|
|||
|
||||
#### UCS commands
|
||||
addUcsManager=1
|
||||
listUcsManager=1
|
||||
listUcsProfile=1
|
||||
listUcsBlade=1
|
||||
associatesUcsProfileToBlade=1
|
||||
listUcsManagers=1
|
||||
listUcsProfiles=1
|
||||
listUcsBlades=1
|
||||
associateUcsProfileToBlade=1
|
||||
|
||||
#### New Load Balancer commands
|
||||
createLoadBalancer=15
|
||||
|
|
|
|||
|
|
@ -424,6 +424,7 @@ public class UcsManagerImpl implements UcsManager {
|
|||
rsp.setId(vo.getUuid());
|
||||
rsp.setDn(vo.getDn());
|
||||
rsp.setHostId(hostIdToUuid(vo.getHostId()));
|
||||
rsp.setAssociatedProfileDn(vo.getProfileDn());
|
||||
rsp.setUcsManagerId(ucsManagerIdToUuid(vo.getUcsManagerId()));
|
||||
return rsp;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ import com.cloud.exception.ResourceAllocationException;
|
|||
import com.cloud.exception.ResourceUnavailableException;
|
||||
import com.cloud.ucs.manager.UcsManager;
|
||||
import com.cloud.user.Account;
|
||||
@APICommand(name="associatesUcsProfileToBlade", description="associate a profile to a blade", responseObject=UcsBladeResponse.class)
|
||||
@APICommand(name="associateUcsProfileToBlade", description="associate a profile to a blade", responseObject=UcsBladeResponse.class)
|
||||
public class AssociateUcsProfileToBladeCmd extends BaseAsyncCmd {
|
||||
public static final Logger s_logger = Logger.getLogger(AssociateUcsProfileToBladeCmd.class);
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ import com.cloud.exception.ResourceUnavailableException;
|
|||
import com.cloud.ucs.manager.UcsManager;
|
||||
import com.cloud.user.Account;
|
||||
|
||||
@APICommand(name="listUcsBlade", description="List ucs blades", responseObject=UcsBladeResponse.class)
|
||||
@APICommand(name="listUcsBlades", description="List ucs blades", responseObject=UcsBladeResponse.class)
|
||||
public class ListUcsBladeCmd extends BaseListCmd {
|
||||
public static final Logger s_logger = Logger.getLogger(ListUcsBladeCmd.class);
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ import com.cloud.exception.ResourceUnavailableException;
|
|||
import com.cloud.server.ManagementService;
|
||||
import com.cloud.ucs.manager.UcsManager;
|
||||
import com.cloud.user.Account;
|
||||
@APICommand(name="listUcsManager", description="List ucs manager", responseObject=UcsManagerResponse.class)
|
||||
@APICommand(name="listUcsManagers", description="List ucs manager", responseObject=UcsManagerResponse.class)
|
||||
public class ListUcsManagerCmd extends BaseListCmd {
|
||||
public static final Logger s_logger = Logger.getLogger(ListUcsManagerCmd.class);
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ import com.cloud.exception.ResourceUnavailableException;
|
|||
import com.cloud.server.ManagementService;
|
||||
import com.cloud.ucs.manager.UcsManager;
|
||||
import com.cloud.user.Account;
|
||||
@APICommand(name="listUcsProfile", description="List profile in ucs manager", responseObject=UcsProfileResponse.class)
|
||||
@APICommand(name="listUcsProfiles", description="List profile in ucs manager", responseObject=UcsProfileResponse.class)
|
||||
public class ListUcsProfileCmd extends BaseListCmd {
|
||||
public static final Logger s_logger = Logger.getLogger(ListUcsProfileCmd.class);
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ public class XmlObject {
|
|||
}
|
||||
Object old = elements.get(key);
|
||||
if (old == null) {
|
||||
System.out.println(String.format("no %s, add new", key));
|
||||
//System.out.println(String.format("no %s, add new", key));
|
||||
elements.put(key, e);
|
||||
} else {
|
||||
if (old instanceof List) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue