incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mlsoren...@apache.org
Subject [21/50] git commit: DeployVMCmd: Remove entityType for ipToNetworkList, MAP is string->string
Date Wed, 30 Jan 2013 20:55:08 GMT
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 <bhaisaab@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/add_remove_nics
Commit: 66430c97457041b87bfbaddad6955a77a42ffdee
Parents: 7183501
Author: Rohit Yadav <bhaisaab@apache.org>
Authored: Mon Jan 28 15:43:37 2013 -0800
Committer: Rohit Yadav <bhaisaab@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;


Mime
View raw message