From d65c97961842ba8dd491dbe30ea26ae458368268 Mon Sep 17 00:00:00 2001 From: guyuliang Date: Fri, 31 May 2024 11:20:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dct=E7=94=B3=E8=AF=B7=E8=99=9A?= =?UTF-8?q?=E6=8B=9F=E6=9C=BA=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bocloud/ims/service/utils/ServerOperationHelper.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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);