Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
guyuliang | 2ceef1513f | |
guyuliang | 87c51e91ff |
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,4 +106,5 @@ public class HostDriver extends GenericDriver<HostProvider> {
|
||||||
}
|
}
|
||||||
return provider.removeGroups(model);
|
return provider.removeGroups(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue