diff --git a/bocloud.ims.service/src/main/java/com/bocloud/ims/service/utils/ServerOperationHelper.java b/bocloud.ims.service/src/main/java/com/bocloud/ims/service/utils/ServerOperationHelper.java index 75f03fa..d59a3ac 100644 --- a/bocloud.ims.service/src/main/java/com/bocloud/ims/service/utils/ServerOperationHelper.java +++ b/bocloud.ims.service/src/main/java/com/bocloud/ims/service/utils/ServerOperationHelper.java @@ -78,6 +78,7 @@ import com.bocloud.ims.service.internal.worker.LvmService; import com.bocloud.ims.service.model.ProcessResult; import com.bocloud.ims.service.resource.fusionsphere.utils.FusionSphereResourceUtils; import com.bocloud.ims.service.task.ResourceTaskNotice; +import com.bocloud.ims.service.transporter.vendor.CloudTowerTransporter; import com.bocloud.ims.service.transporter.vendor.H3cTransporter; import com.bocloud.ims.service.transporter.vendor.PowervcTransporter; import com.bocloud.ims.service.transporter.vendor.SmartxTransporter; @@ -327,6 +328,8 @@ public class ServerOperationHelper { private ResourceOperatorFactory resourceOperatorFactory; @Autowired private ProviderContextManager providerContextManager; + @Autowired + private CloudTowerTransporter cloudTowerTransporter; /** * 获取云主机builder器 @@ -482,6 +485,12 @@ public class ServerOperationHelper { process = new SangforBuilder(context, vendor, serverDriver,cloudServerRepository,volumeRepository, dataStoreRepository, networkRepository, cosInternalService, serverRepository, shtermService); break; + case CLOUDTOWER: + process = new CloudTowerServerBuilder(cloudVendorRepository, serverRepository, cloudServerRepository, + volumeRepository, volumeTemplateRepository, imageRepository, switcherRepository, + networkRepository, subnetRepository, serverVolumeRepository, serverImageRepository, + serverDriver, volumeDriver, serverTemplateDriver, cloudTowerTransporter, context, clusterRepository, networkCardRepository); + break; default: //默认走acd的ServerBuilder process = new ResourceOperatorServerBuilder(resourceOperatorFactory, vendor, providerContextManager);