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新增字段--------// //-----FusionSphere新增字段--------//
private Long totalCacheSizeByte;
public Long getCpuHz() { public Long getCpuHz() {
return cpuHz; return cpuHz;

View File

@ -34,6 +34,26 @@ public class NetworkModel {
private Long vendorId; private Long vendorId;
private Long region; 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() { public String getRegionId() {
return regionId; return regionId;
} }

View File

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

View File

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

View File

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

View File

@ -21,6 +21,7 @@ public class SyncModel {
private List<VolumeTemplateModel> volumeTemplateModels; private List<VolumeTemplateModel> volumeTemplateModels;
private List<ImageModel> imageModels; private List<ImageModel> imageModels;
private List<TaskMsgModel> taskMsgModels; private List<TaskMsgModel> taskMsgModels;
private List<ClusterModel> clusterModels;
public List<ServerModel> getServerAndServerTemplateModels() { public List<ServerModel> getServerAndServerTemplateModels() {
List<ServerModel> resultModels = new ArrayList<>(this.serverModels); 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.cmp.provider.SuperProvider;
import com.bocloud.common.model.BocloudResult; import com.bocloud.common.model.BocloudResult;
import java.util.List;
/** /**
* *
* *
@ -85,6 +87,9 @@ public interface ClusterProvider extends SuperProvider {
default BocloudResult listByVdc(String vdcName) { default BocloudResult listByVdc(String vdcName) {
return null; return null;
} }
default BocloudResult<List<ClusterModel>> getClusterByVlanId(String vlanId) {
return null;
}
default BocloudResult resourceStatistics(String uri) { default BocloudResult resourceStatistics(String uri) {
return null; return null;

View File

@ -132,6 +132,16 @@ public interface ServerProvider extends SuperProvider {
return new BocloudResult(false, "尚未实现"); 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, "尚未实现");
};
/** /**
* *
* *