|
17 | 17 |
|
18 | 18 | package org.apache.cloudstack.api.command.admin.cluster; |
19 | 19 |
|
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 | + |
25 | 23 | import org.apache.cloudstack.api.APICommand; |
26 | 24 | import org.apache.cloudstack.api.ApiConstants; |
27 | 25 | import org.apache.cloudstack.api.ApiErrorCode; |
|
34 | 32 | import org.apache.cloudstack.api.response.ZoneResponse; |
35 | 33 | import org.apache.log4j.Logger; |
36 | 34 |
|
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; |
39 | 39 |
|
40 | 40 | @APICommand(name = "addCluster", description="Adds a new cluster", responseObject=ClusterResponse.class) |
41 | 41 | public class AddClusterCmd extends BaseCmd { |
@@ -87,10 +87,10 @@ public class AddClusterCmd extends BaseCmd { |
87 | 87 | @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)") |
88 | 88 | private String vSwitchTypePublicTraffic; |
89 | 89 |
|
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.") |
91 | 91 | private String vSwitchNameGuestTraffic; |
92 | 92 |
|
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.") |
94 | 94 | private String vSwitchNamePublicTraffic; |
95 | 95 |
|
96 | 96 | public String getVSwitchTypeGuestTraffic() { |
|
0 commit comments