Compare commits

...

2 Commits

Author SHA1 Message Date
guyuliang 2ceef1513f cloudTower申请虚拟机流程 2024-05-29 16:13:51 +08:00
guyuliang 87c51e91ff 添加ct的transporter 2024-05-28 15:21:14 +08:00
2 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,8 @@ import com.bocloud.common.model.BocloudResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
*
*
@ -123,4 +125,13 @@ public class ClusterDriver extends GenericDriver<ClusterProvider> {
}
return clusterProvider.resourceStatistics(aggregateId);
}
public BocloudResult<List<ClusterModel>> getClusterByVlanId(String vlanId, String vendor) {
ClusterProvider clusterProvider = getProvider(vendor, ClusterProvider.class, repository);
if (before(clusterProvider).isFailed()) {
return new BocloudResult(false, "云平台认证失败!");
}
return clusterProvider.getClusterByVlanId(vlanId);
}
}

View File

@ -106,4 +106,5 @@ public class HostDriver extends GenericDriver<HostProvider> {
}
return provider.removeGroups(model);
}
}