From 66430c97457041b87bfbaddad6955a77a42ffdee Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Mon, 28 Jan 2013 15:43:37 -0800 Subject: [PATCH] DeployVMCmd: Remove entityType for ipToNetworkList, MAP is string->string Remove entityType as it can confuse people, right now we process map to string data type maps This map should be handled in cmd class level by an api writer to getObject by uuid or by long int id as in getIpToNetworkMap() of DeployVMCmd Signed-off-by: Rohit Yadav --- .../org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java b/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java index 9d39f692eaf..a019511537f 100644 --- a/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java +++ b/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java @@ -147,7 +147,7 @@ public class DeployVMCmd extends BaseAsyncCreateCmd { private List securityGroupNameList; @ACL(checkKeyAccess=true) - @Parameter(name = ApiConstants.IP_NETWORK_LIST, type = CommandType.MAP, entityType={Network.class, IpAddress.class}, + @Parameter(name = ApiConstants.IP_NETWORK_LIST, type = CommandType.MAP, description = "ip to network mapping. Can't be specified with networkIds parameter." + " Example: iptonetworklist[0].ip=10.10.10.11&iptonetworklist[0].networkid=uuid - requests to use ip 10.10.10.11 in network id=uuid") private Map ipToNetworkList;