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


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/9a95495f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/9a95495f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/9a95495f

Branch: refs/heads/javelin
Commit: 9a95495f87044714c795feaa9d1d744e759ba873
Parents: fa00ddf
Author: Rohit Yadav <[email protected]>
Authored: Mon Jan 28 15:43:37 2013 -0800
Committer: Sheng Yang <[email protected]>
Committed: Mon Jan 28 16:15:55 2013 -0800

----------------------------------------------------------------------
 .../api/command/user/vm/DeployVMCmd.java           |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/9a95495f/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
----------------------------------------------------------------------
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 9d39f69..a019511 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<String> 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;

Reply via email to