NetworkIds parameter is required now for deployVmCmd.

This commit is contained in:
alena 2010-12-06 10:56:19 -08:00
parent 31b3b79f5a
commit 8b99a8e15c
2 changed files with 1 additions and 2 deletions

View File

@ -84,7 +84,7 @@ public class DeployVMCmd extends BaseAsyncCreateCmd {
@Parameter(name=ApiConstants.ZONE_ID, type=CommandType.LONG, required=true, description="availability zone for the virtual machine")
private Long zoneId;
@Parameter(name=ApiConstants.NETWORK_IDS, type=CommandType.LIST, collectionType=CommandType.LONG)
@Parameter(name=ApiConstants.NETWORK_IDS, type=CommandType.LIST, required=true, collectionType=CommandType.LONG, description="list of network ids used by virtual machine")
private List<Long> networkIds;
// unexposed parameter needed for serializing/deserializing the command

View File

@ -18,7 +18,6 @@
package com.cloud.storage.secondary;
import com.cloud.agent.api.StartupCommand;
import com.cloud.host.HostVO;
import com.cloud.utils.component.Manager;
import com.cloud.vm.SecondaryStorageVmVO;