parent
468215f749
commit
a40a7d7f7c
|
@ -241,10 +241,10 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
|
|||
}
|
||||
|
||||
/**
|
||||
* Gets traction strategy format.
|
||||
* Gets ip segment format.
|
||||
*
|
||||
* @param ipSegment the dispose object
|
||||
* @return the traction strategy format
|
||||
* @param ipSegment the ip segment
|
||||
* @return the ip segment format
|
||||
*/
|
||||
private String getIpSegmentFormat(String ipSegment) {
|
||||
for (String v : ConstValue.IP_SEGMENT_SPILT) {
|
||||
|
@ -570,10 +570,7 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
|
|||
}
|
||||
|
||||
for (String protectName : protectNames) {
|
||||
String serviceId = protectName
|
||||
.replace(objectPrefix + "_", "")
|
||||
.replace("_" + IpAddrType.IPV4.getDescription(), "")
|
||||
.replace("_" + IpAddrType.IPV6.getDescription(), "");
|
||||
String serviceId = getUserServiceId(protectName);
|
||||
|
||||
// UMC上面存在对象已经失效
|
||||
if (disposeServiceGroup.values().stream().noneMatch(k -> serviceId.equals(k.getServiceId()))) {
|
||||
|
@ -605,6 +602,16 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets user service id.
|
||||
*
|
||||
* @param projectObjName the project obj name
|
||||
* @return the user service id
|
||||
*/
|
||||
private String getUserServiceId(String projectObjName) {
|
||||
return projectObjName.substring(objectPrefix.length() + 2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets traction strategy name.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue