Skip to content

Commit f17e6fc

Browse files
author
Sateesh Chodapuneedi
committed
CLOUDSTACK-4097 2 optional parameters of addCluster API are not declared correctly
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
1 parent 8339a22 commit f17e6fc

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎api/src/org/apache/cloudstack/api/command/admin/cluster/AddClusterCmd.java‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@
1717

1818
package org.apache.cloudstack.api.command.admin.cluster;
1919

20-
import com.cloud.exception.DiscoveryException;
21-
import com.cloud.exception.InvalidParameterValueException;
22-
import com.cloud.exception.ResourceInUseException;
23-
import com.cloud.org.Cluster;
24-
import com.cloud.user.Account;
20+
import java.util.ArrayList;
21+
import java.util.List;
22+
2523
import org.apache.cloudstack.api.APICommand;
2624
import org.apache.cloudstack.api.ApiConstants;
2725
import org.apache.cloudstack.api.ApiErrorCode;
@@ -34,8 +32,10 @@
3432
import org.apache.cloudstack.api.response.ZoneResponse;
3533
import org.apache.log4j.Logger;
3634

37-
import java.util.ArrayList;
38-
import java.util.List;
35+
import com.cloud.exception.DiscoveryException;
36+
import com.cloud.exception.ResourceInUseException;
37+
import com.cloud.org.Cluster;
38+
import com.cloud.user.Account;
3939

4040
@APICommand(name = "addCluster", description="Adds a new cluster", responseObject=ClusterResponse.class)
4141
public class AddClusterCmd extends BaseCmd {
@@ -87,10 +87,10 @@ public class AddClusterCmd extends BaseCmd {
8787
@Parameter(name = ApiConstants.VSWITCH_TYPE_PUBLIC_TRAFFIC, type = CommandType.STRING, required = false, description = "Type of virtual switch used for public traffic in the cluster. Allowed values are, vmwaresvs (for VMware standard vSwitch) and vmwaredvs (for VMware distributed vSwitch)")
8888
private String vSwitchTypePublicTraffic;
8989

90-
@Parameter(name = ApiConstants.VSWITCH_TYPE_GUEST_TRAFFIC, type = CommandType.STRING, required = false, description = "Name of virtual switch used for guest traffic in the cluster. This would override zone wide traffic label setting.")
90+
@Parameter(name = ApiConstants.VSWITCH_NAME_GUEST_TRAFFIC, type = CommandType.STRING, required = false, description = "Name of virtual switch used for guest traffic in the cluster. This would override zone wide traffic label setting.")
9191
private String vSwitchNameGuestTraffic;
9292

93-
@Parameter(name = ApiConstants.VSWITCH_TYPE_PUBLIC_TRAFFIC, type = CommandType.STRING, required = false, description = "Name of virtual switch used for public traffic in the cluster. This would override zone wide traffic label setting.")
93+
@Parameter(name = ApiConstants.VSWITCH_NAME_PUBLIC_TRAFFIC, type = CommandType.STRING, required = false, description = "Name of virtual switch used for public traffic in the cluster. This would override zone wide traffic label setting.")
9494
private String vSwitchNamePublicTraffic;
9595

9696
public String getVSwitchTypeGuestTraffic() {

0 commit comments

Comments
 (0)