You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mu...@apache.org on 2013/01/31 15:23:00 UTC

[2/50] [abbrv] git commit: refs/heads/events-framework - DeployVMCmd: Remove entityType for ipToNetworkList, MAP is string->string

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 <bh...@apache.org>


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

Branch: refs/heads/events-framework
Commit: 66430c97457041b87bfbaddad6955a77a42ffdee
Parents: 7183501
Author: Rohit Yadav <bh...@apache.org>
Authored: Mon Jan 28 15:43:37 2013 -0800
Committer: Rohit Yadav <bh...@apache.org>
Committed: Mon Jan 28 15:43:37 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/66430c97/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;