ct添加对应缺少字段

develop
guyuliang 2024-05-27 15:22:13 +08:00
parent 6afb06f338
commit 2741746796
8 changed files with 52 additions and 0 deletions

View File

@ -100,6 +100,8 @@ public class HostModel {
//-----FusionSphere新增字段--------//
private Long totalCacheSizeByte;
public Long getCpuHz() {
return cpuHz;

View File

@ -34,6 +34,26 @@ public class NetworkModel {
private Long vendorId;
private Long region;
private String clusterUuid;
private String localId;
public String getLocalId() {
return localId;
}
public void setLocalId(String localId) {
this.localId = localId;
}
public String getClusterUuid() {
return clusterUuid;
}
public void setClusterUuid(String clusterUuid) {
this.clusterUuid = clusterUuid;
}
public String getRegionId() {
return regionId;
}

View File

@ -327,6 +327,8 @@ public class ServerModel implements VendorModel {
private String resourceId;//资源池Id
private Boolean powerOn;//创建完成后是否启动
private String localId;
@Override
public Serializable getIdInVendor(String s) {
return this.instanceId;

View File

@ -24,6 +24,16 @@ public class SwitcherModel {
private NetworkModel network;
private List<NetworkModel> networks;
private String clusterUuid;
public String getClusterUuid() {
return clusterUuid;
}
public void setClusterUuid(String clusterUuid) {
this.clusterUuid = clusterUuid;
}
public String getBondName() {
return bondName;
}

View File

@ -166,6 +166,8 @@ public class VolumeModel {
private Long dataStoreId;// 数据存储
//fc新增字段
private String policyName;
public VolumeModel() {
super();
}

View File

@ -21,6 +21,7 @@ public class SyncModel {
private List<VolumeTemplateModel> volumeTemplateModels;
private List<ImageModel> imageModels;
private List<TaskMsgModel> taskMsgModels;
private List<ClusterModel> clusterModels;
public List<ServerModel> getServerAndServerTemplateModels() {
List<ServerModel> resultModels = new ArrayList<>(this.serverModels);

View File

@ -5,6 +5,8 @@ import com.bocloud.cmp.model.ClusterOperateModel;
import com.bocloud.cmp.provider.SuperProvider;
import com.bocloud.common.model.BocloudResult;
import java.util.List;
/**
*
*
@ -85,6 +87,9 @@ public interface ClusterProvider extends SuperProvider {
default BocloudResult listByVdc(String vdcName) {
return null;
}
default BocloudResult<List<ClusterModel>> getClusterByVlanId(String vlanId) {
return null;
}
default BocloudResult resourceStatistics(String uri) {
return null;

View File

@ -132,6 +132,16 @@ public interface ServerProvider extends SuperProvider {
return new BocloudResult(false, "尚未实现");
}
default BocloudResult addNetwork(ServerModel server) {
return new BocloudResult(false, "尚未实现");
};
default BocloudResult removeNetwork(ServerModel server) {
return new BocloudResult(false, "尚未实现");
};
default BocloudResult addDisks(ServerModel server) {
return new BocloudResult(false, "尚未实现");
};
/**
*
*