添加ct的transporter

develop
guyuliang 2024-05-28 15:21:14 +08:00
parent 590010842e
commit 87c51e91ff
1 changed files with 11 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.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* *
* *
@ -123,4 +125,13 @@ public class ClusterDriver extends GenericDriver<ClusterProvider> {
} }
return clusterProvider.resourceStatistics(aggregateId); 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);
}
} }