api: Make networkofferingid required in migrateNetwork (#2852)

MigrateNetwork API doesn't declare networkofferingid as required.

Fixes #2851
This commit is contained in:
Kris Sterckx 2018-09-20 12:19:00 +02:00 committed by Rohit Yadav
parent 223a373e53
commit 8da25139b8
1 changed files with 2 additions and 3 deletions

View File

@ -57,11 +57,10 @@ public class MigrateNetworkCmd extends BaseAsyncCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
@ACL(accessType = AccessType.OperateEntry)
@Parameter(name=ApiConstants.NETWORK_ID, type=CommandType.UUID, entityType = NetworkResponse.class,
required=true, description="the ID of the network")
@Parameter(name = ApiConstants.NETWORK_ID, type = CommandType.UUID, entityType = NetworkResponse.class, required = true, description = "the ID of the network")
protected Long id;
@Parameter(name = ApiConstants.NETWORK_OFFERING_ID, type = CommandType.UUID, entityType = NetworkOfferingResponse.class, description = "network offering ID")
@Parameter(name = ApiConstants.NETWORK_OFFERING_ID, type = CommandType.UUID, entityType = NetworkOfferingResponse.class, required = true, description = "network offering ID")
private Long networkOfferingId;
@Parameter(name = ApiConstants.RESUME, type = CommandType.BOOLEAN, description = "true if previous network migration cmd failed")