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
@@ -107,6 +106,18 @@ public class ImportVmCmd extends ImportUnmanagedInstanceCmd {
107
106
description = "the network ID")
108
107
privateLongnetworkId;
109
108
109
+
@Parameter(name = ApiConstants.MAC_ADDRESS,
110
+
type = CommandType.STRING,
111
+
since = "4.22.1",
112
+
description = "(only for importing VMs from KVM local/shared storage) optional - the MAC address for the imported VM NIC. If omitted, a new MAC address is generated.")
113
+
privateStringmacAddress;
114
+
115
+
@Parameter(name = ApiConstants.IP_ADDRESS,
116
+
type = CommandType.STRING,
117
+
since = "4.22.1",
118
+
description = "(only for importing VMs from KVM local/shared storage) optional - the IPv4 address for the imported VM NIC. If omitted, IPv4 assignment remains automatic.")
119
+
privateStringipAddress;
120
+
110
121
@Parameter(name = ApiConstants.HOST_ID, type = CommandType.UUID, entityType = HostResponse.class, description = "Host where local disk is located")
111
122
privateLonghostId;
112
123
@@ -172,13 +183,6 @@ public class ImportVmCmd extends ImportUnmanagedInstanceCmd {
172
183
description = "(only for importing VMs from VMware to KVM) optional - if true, forces virt-v2v conversions to write directly on the provided storage pool (avoid using temporary conversion pool).")
173
184
privateBooleanforceConvertToPool;
174
185
175
-
@Parameter(name = ApiConstants.OS_ID,
176
-
type = CommandType.UUID,
177
-
entityType = GuestOSResponse.class,
178
-
since = "4.22.1",
179
-
description = "(only for importing VMs from VMware to KVM) optional - the ID of the guest OS for the imported VM.")
180
-
privateLongguestOsId;
181
-
182
186
@Parameter(name = ApiConstants.USE_VDDK,
183
187
type = CommandType.BOOLEAN,
184
188
since = "4.22.1",
@@ -275,6 +279,14 @@ public Long getNetworkId() {
275
279
returnnetworkId;
276
280
}
277
281
282
+
publicStringgetMacAddress() {
283
+
returnmacAddress;
284
+
}
285
+
286
+
publicStringgetIpAddress() {
287
+
returnipAddress;
288
+
}
289
+
278
290
@Override
279
291
publicStringgetEventType() {
280
292
returnEventTypes.EVENT_VM_IMPORT;
@@ -288,10 +300,6 @@ public boolean getForceConvertToPool() {
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtGetRemoteVmsCommandWrapper.java
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtGetUnmanagedInstancesCommandWrapper.java
0 commit comments