@Column(name = "delete_state")
private int deleteState;
+ @Column(name = "protection_cloud_point_name")
+ private String protectionCloudPointName;
+
+ @Column(name = "protection_type")
+ private String protectionType;
+
public CCVPNInstance() {
}
public void setProtectStatus(int protectStatus) {
this.protectStatus = protectStatus;
}
+
+ public String getProtectionCloudPointName() {
+ return protectionCloudPointName;
+ }
+
+ public void setProtectionCloudPointName(String protectionCloudPointName) {
+ this.protectionCloudPointName = protectionCloudPointName;
+ }
+
+ public String getProtectionType() {
+ return protectionType;
+ }
+
+ public void setProtectionType(String protectionType) {
+ this.protectionType = protectionType;
+ }
}
\ No newline at end of file
instance.setAccessPointOneBandWidth(accessPointOneBandWidth);
instance.setStatus("0");
instance.setProtectStatus(protectStatus?1:0);
+ if (protectStatus) {
+ instance.setProtectionType("1+1");
+ instance.setProtectionCloudPointName("tranportEp_dst_ID_123_4");
+ }
int flag = intentInstanceService.createCCVPNInstance(instance);
connectionLink.put("transportEndpointA", instance.getAccessPointOneName());
connectionLink.put("transportEndpointB", instance.getCloudPointName());
connectionLinks.add(connectionLink);
+ if (instance.getProtectStatus() == 1) {
+ sla.put("protectionType", instance.getProtectionType());
+ connectionLink.put("transportEndpointBProtection", instance.getProtectionCloudPointName());
+ }
transportNetwork.put("sla", sla);
transportNetwork.put("connectionLinks", connectionLinks);
transportNetworks.add(transportNetwork);
access_point_one_band_width integer,
line_num varchar(64),
delete_state integer default 0,
- protect_status integer default 0
+ protect_status integer default 0,
+ protection_cloud_point_name varchar(255),
+ protection_type varchar(255)
);
-- ----------------------------