添加ct的transporter
parent
590010842e
commit
87c51e91ff
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue