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
@Parameter(name=ApiConstants.PASSWORD, type=CommandType.STRING, required=false, description="the password for the host")
43
+
privateStringpassword;
43
44
44
45
@IdentityMapper(entityTableName="host_pod_ref")
45
46
@Parameter(name=ApiConstants.POD_ID, type=CommandType.LONG, required=true, description="the Pod ID for the host")
@@ -52,94 +53,116 @@ public class AddClusterCmd extends BaseCmd {
52
53
privateStringusername;
53
54
54
55
@IdentityMapper(entityTableName="data_center")
55
-
@Parameter(name=ApiConstants.ZONE_ID, type=CommandType.LONG, required=true, description="the Zone ID for the cluster")
56
-
privateLongzoneId;
57
-
58
-
@Parameter(name=ApiConstants.HYPERVISOR, type=CommandType.STRING, required=true, description="hypervisor type of the cluster: XenServer,KVM,VMware,Hyperv,BareMetal,Simulator")
59
-
privateStringhypervisor;
60
-
61
-
@Parameter(name=ApiConstants.CLUSTER_TYPE, type=CommandType.STRING, required=true, description="type of the cluster: CloudManaged, ExternalManaged")
62
-
privateStringclusterType;
63
-
64
-
@Parameter(name=ApiConstants.ALLOCATION_STATE, type=CommandType.STRING, description="Allocation state of this cluster for allocation of new resources")
56
+
57
+
@Parameter(name=ApiConstants.ZONE_ID, type=CommandType.LONG, required=true, description="the Zone ID for the cluster")
58
+
privateLongzoneId;
59
+
60
+
@Parameter(name=ApiConstants.HYPERVISOR, type=CommandType.STRING, required=true, description="hypervisor type of the cluster: XenServer,KVM,VMware,Hyperv,BareMetal,Simulator")
61
+
privateStringhypervisor;
62
+
63
+
@Parameter(name=ApiConstants.CLUSTER_TYPE, type=CommandType.STRING, required=true, description="type of the cluster: CloudManaged, ExternalManaged")
64
+
privateStringclusterType;
65
+
66
+
@Parameter(name=ApiConstants.ALLOCATION_STATE, type=CommandType.STRING, description="Allocation state of this cluster for allocation of new resources")
65
67
privateStringallocationState;
66
68
67
-
publicStringgetClusterName() {
68
-
returnclusterName;
69
-
}
69
+
@Parameter(name = ApiConstants.VSM_USERNAME, type = CommandType.STRING, required = false, description = "the username for the VSM associated with this cluster")
70
+
privateStringvsmusername;
70
71
71
-
publicStringgetPassword() {
72
-
returnpassword;
73
-
}
72
+
@Parameter(name = ApiConstants.VSM_PASSWORD, type = CommandType.STRING, required = false, description = "the password for the VSM associated with this cluster")
73
+
privateStringvsmpassword;
74
74
75
-
publicLonggetPodId() {
76
-
returnpodId;
77
-
}
78
-
79
-
publicStringgetUrl() {
80
-
returnurl;
81
-
}
75
+
@Parameter(name = ApiConstants.VSM_IPADDRESS, type = CommandType.STRING, required = false, description = "the ipaddress of the VSM associated with this cluster")
s_logger.info("Preparing NIC device on dvSwitch : " + dvSwitchUuid);
1492
1492
1493
-
nic = VmwareHelper.prepareNicDevice(vmMo, networkInfo.first(), nicDeviceType, networkInfo.second(), nicTo.getMac(), i, i + 1, true, true);
1493
+
nic = VmwareHelper.prepareDvNicDevice(vmMo, networkInfo.first(), nicDeviceType, networkInfo.second(), dvSwitchUuid, nicTo.getMac(), i, i + 1, true, true);
0 commit comments