You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4fcb406
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: api/src/com/cloud/api/commands/DeployVMCmd.java
+42-4Lines changed: 42 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,11 @@
19
19
packagecom.cloud.api.commands;
20
20
21
21
importjava.util.ArrayList;
22
+
importjava.util.Collection;
23
+
importjava.util.HashMap;
24
+
importjava.util.Iterator;
22
25
importjava.util.List;
26
+
importjava.util.Map;
23
27
24
28
importorg.apache.log4j.Logger;
25
29
@@ -79,7 +83,7 @@ public class DeployVMCmd extends BaseAsyncCreateCmd {
79
83
privateLongdomainId;
80
84
81
85
//Network information
82
-
@Parameter(name=ApiConstants.NETWORK_IDS, type=CommandType.LIST, collectionType=CommandType.LONG, description="list of network ids used by virtual machine")
86
+
@Parameter(name=ApiConstants.NETWORK_IDS, type=CommandType.LIST, collectionType=CommandType.LONG, description="list of network ids used by virtual machine. Can't be specified with ipToNetworkList parameter")
83
87
privateList<Long> networkIds;
84
88
85
89
//DataDisk information
@@ -109,6 +113,9 @@ public class DeployVMCmd extends BaseAsyncCreateCmd {
109
113
110
114
@Parameter(name=ApiConstants.SECURITY_GROUP_NAMES, type=CommandType.LIST, collectionType=CommandType.STRING, description="comma separated list of security groups names that going to be applied to the virtual machine. Should be passed only when vm is created from a zone with Basic Network support. Mutually exclusive with securitygroupids parameter")
111
115
privateList<String> securityGroupNameList;
116
+
117
+
@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=204 - requests to use ip 10.10.10.11 in network id=204")
0 commit comments