REM:
1. 修改防护对象和旁路手动牵引策略名称的前缀
This commit is contained in:
chenlinghy 2021-04-22 15:39:57 +08:00
parent 73ff082065
commit 2b8984725c
1 changed files with 5 additions and 5 deletions

View File

@ -61,7 +61,7 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
/** /**
* The Object prefix. * The Object prefix.
*/ */
private final String objectPrefix = "H"; private final String objectPrefix = "C";
/** /**
* The Dp bypass manager. * The Dp bypass manager.
*/ */
@ -524,7 +524,7 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
for (Map.Entry<IpAddrType, String> entry : ipSegment.entrySet()) { for (Map.Entry<IpAddrType, String> entry : ipSegment.entrySet()) {
String protectName = getProtectObjectName(v.getServiceId(), entry.getKey()); String protectName = getProtectObjectName(v.getServiceId(), entry.getKey());
//只处理CMHY前缀的防护对象 //只处理C前缀的防护对象
if (protectName.startsWith(objectPrefix)) { if (protectName.startsWith(objectPrefix)) {
// 防护对象存在 // 防护对象存在
if (dpBypassManager.getProtectObject().containsKey(protectName)) { if (dpBypassManager.getProtectObject().containsKey(protectName)) {
@ -736,7 +736,7 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
if (ret != null && ret.getBypassManualTractionStrategyForService().size() > 0) { if (ret != null && ret.getBypassManualTractionStrategyForService().size() > 0) {
ret.getBypassManualTractionStrategyForService().forEach(k -> { ret.getBypassManualTractionStrategyForService().forEach(k -> {
String policyName = k.getPolicyName().getValue(); String policyName = k.getPolicyName().getValue();
// 非法名称的旁路牵引策略-因UMC平台共享不能删除第三方的方璐手动牵引策略 // 只处理C旁路手动牵引策略不可删除第三方添加的旁路手动牵引策略
if (policyName.startsWith(objectPrefix)) { if (policyName.startsWith(objectPrefix)) {
DpTractionStrategy obj; DpTractionStrategy obj;
@ -787,7 +787,7 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
ret.getProtectionTargetWithStrategyForService().forEach(k -> { ret.getProtectionTargetWithStrategyForService().forEach(k -> {
String objName = k.getProtectionTargetName().getValue(); String objName = k.getProtectionTargetName().getValue();
// 只处理CMHI相关对象和模板 // 只处理C相关对象和模板
if (objName.startsWith(objectPrefix)) { if (objName.startsWith(objectPrefix)) {
DpProtectionStrategyInfo obj; DpProtectionStrategyInfo obj;
@ -856,7 +856,7 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
ret.getProtectionObjectDataForService().forEach(k -> { ret.getProtectionObjectDataForService().forEach(k -> {
String objName = k.getProtectionName().getValue(); String objName = k.getProtectionName().getValue();
// 只处理CMHY相关对象,不可对UMC上的非杭研防护对象进行删除 // 只处理C相关对象,不可对UMC上的非杭研防护对象进行删除
if (objName.startsWith(objectPrefix)) { if (objName.startsWith(objectPrefix)) {
DpProtectObject obj; DpProtectObject obj;