REM:
1.增加注释
2.修改判断IPV6段是否变化的判断条件
This commit is contained in:
chenlinghy 2021-01-16 15:02:39 +08:00
parent 39513c00a3
commit c3a3b90e50
1 changed files with 2 additions and 1 deletions

View File

@ -117,6 +117,7 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
// 解除关联的防护模板
for (DpProtectionStrategyInfo v : dpBypassManager.getProtectStrategy().values()) {
// 如果防护对象关联了防护策略模板那么解除该防护策略模板
if (v.getProtectTargetName().equals(objName)) {
ret = getCleanTypePort().disableProtectionStrategyTemplateForUMC(objName, v.getProtectStrategyName());
@ -304,7 +305,7 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
}
} else if (IpAddrType.IPV6.equals(t)) {
if (ipV6.size() != dp.getIpSegment().values().size()
|| !ipV4.containsAll(dp.getIpSegment().values())
|| !ipV6.containsAll(dp.getIpSegment().values())
|| dp.getIpSegment().values().containsAll(ipV6)) {
upgradeIpSegment = true;
}